:root {
  --wds-blue: #0866d9;
  --wds-blue-dark: #064fa9;
  --wds-navy: #071b33;
  --wds-coral: #ff5a5f;
}

.btn-primary,
.bg-primary { background-color: var(--wds-blue) !important; border-color: var(--wds-blue) !important; }
.btn-primary:hover,
.btn-primary:focus { background-color: var(--wds-blue-dark) !important; border-color: var(--wds-blue-dark) !important; }
.text-primary { color: var(--wds-blue) !important; }
.hov-text-primary:hover { color: var(--wds-blue) !important; }
.aiz-main-wrapper .right-content { box-shadow: -18px 0 50px rgba(7, 27, 51, .14); }
.aiz-main-wrapper .right-content .size-48px { width: 56px !important; height: 56px !important; }

/* WDS operating-system surfaces: admin, seller and customer dashboards */
.aiz-sidebar.left,
.aiz-side-nav-logo-wrap,
.aiz-side-nav-logo-wrap > a {
  background-color: var(--wds-navy) !important;
}

.aiz-side-nav-link {
  border-radius: 8px;
  margin: 2px 10px;
  transition: background-color .18s ease, transform .18s ease;
}

.aiz-side-nav-link:hover {
  background: rgba(255, 255, 255, .08) !important;
  transform: translateX(2px);
}

.aiz-side-nav-link.active,
.aiz-side-nav-item.active > .aiz-side-nav-link {
  background: linear-gradient(90deg, var(--wds-blue), #1683ff) !important;
  box-shadow: 0 8px 22px rgba(8, 102, 217, .28);
}

.aiz-side-nav-logo-wrap img {
  max-height: 42px;
  object-fit: contain;
}

.card {
  border-color: rgba(7, 27, 51, .08);
  box-shadow: 0 6px 20px rgba(7, 27, 51, .055);
}

.card-header {
  border-bottom-color: rgba(7, 27, 51, .08);
}

.badge-primary,
.alert-primary {
  background-color: rgba(8, 102, 217, .12) !important;
  color: var(--wds-blue) !important;
}

.table thead th {
  color: var(--wds-navy);
  background: #f7f9fc;
  border-bottom-color: rgba(7, 27, 51, .10);
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--wds-blue) !important;
  box-shadow: 0 0 0 3px rgba(8, 102, 217, .12) !important;
}

.pagination .page-item.active .page-link {
  background-color: var(--wds-blue);
  border-color: var(--wds-blue);
}

.btn-success {
  background: var(--wds-blue) !important;
  border-color: var(--wds-blue) !important;
  box-shadow: 0 6px 16px rgba(8, 102, 217, .20) !important;
}

.btn-success:hover,
.btn-success:focus {
  background: var(--wds-blue-dark) !important;
  border-color: var(--wds-blue-dark) !important;
}

/* The Core homepage hero */
.wds-home-hero-wide {
  width: 100%;
  height: clamp(300px, 30vw, 500px);
  border-radius: 12px;
}

.wds-home-hero-wide img {
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .wds-flash-only #flash_deal,
  .wds-flash-only #flash_deal > div,
  .wds-flash-only .flash-deals-baner { height: 400px !important; }
  .wds-flash-only .flash-deals-baner > a { border-radius: 12px; overflow: hidden; }
}

@media (min-width: 1200px) {
  .wds-flash-only #flash_deal,
  .wds-flash-only #flash_deal > div,
  .wds-flash-only .flash-deals-baner { height: 500px !important; }
}

@media (min-width: 1500px) {
  .wds-flash-only #flash_deal,
  .wds-flash-only #flash_deal > div,
  .wds-flash-only .flash-deals-baner { height: 516px !important; }
}

.wds-hero-slide { overflow: hidden; border-radius: 12px; }
.wds-hero-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 11, 29, .94) 0%, rgba(2, 11, 29, .72) 34%, rgba(2, 11, 29, .04) 68%);
}
.wds-home-hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(26px, 5vw, 76px);
  width: min(43%, 560px);
  color: #fff;
  transform: translateY(-50%);
}
.wds-home-hero-copy span {
  color: #45adff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .17em;
}
.wds-home-hero-copy h2 {
  margin: 12px 0 13px;
  color: #fff;
  font-size: clamp(34px, 4.1vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.035em;
}
.wds-home-hero-copy p {
  max-width: 510px;
  margin: 0 0 22px;
  color: rgba(255,255,255,.78);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.5;
}
.wds-home-hero-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 7px;
  background: #0866d9;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(8,102,217,.35);
}

/* Premium brands destination */
.wds-brands-hero {
  position: relative;
  height: clamp(460px, 42vw, 680px);
  overflow: hidden;
  background: #020b1d;
}

.wds-brands-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wds-brands-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 11, 29, .96) 0%, rgba(2, 11, 29, .74) 38%, rgba(2, 11, 29, .04) 72%);
}

.wds-brands-hero .container { z-index: 2; }
.wds-brands-hero-copy { max-width: 620px; color: #fff; }
.wds-eyebrow { color: #35a7ff; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.wds-brands-hero h1 { margin: 16px 0; max-width: 560px; color: #fff; font-size: clamp(38px, 5vw, 72px); font-weight: 900; line-height: .98; letter-spacing: -.04em; }
.wds-brands-hero p { max-width: 570px; color: rgba(255,255,255,.78); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; }
.wds-brands-cta { margin-top: 18px; padding: 13px 25px; border-radius: 8px; background: #0866d9; color: #fff !important; font-weight: 800; box-shadow: 0 12px 30px rgba(8,102,217,.32); }

.wds-brand-world { position: relative; min-height: 250px; overflow: hidden; border-radius: 14px; background: #020b1d; box-shadow: 0 14px 34px rgba(7,27,51,.14); }
.wds-brand-world img { width: 100%; height: 250px; object-fit: cover; transition: transform .45s ease; }
.wds-brand-world:hover img { transform: scale(1.04); }
.wds-brand-world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,11,29,.94), transparent 72%); }
.wds-brand-world-overlay { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.wds-brand-world-overlay strong, .wds-brand-world-overlay small { display: block; }
.wds-brand-world-overlay strong { font-size: 21px; font-weight: 850; }
.wds-brand-world-overlay small { margin-top: 4px; color: rgba(255,255,255,.72); }
.wds-brands-heading h2 { margin: 9px 0 5px; color: #071b33; font-size: clamp(28px, 3vw, 42px); font-weight: 900; }
.wds-brands-heading p { color: #65758b; }
.wds-brand-grid-shell { border: 1px solid #e8edf5; border-radius: 16px; box-shadow: 0 18px 46px rgba(7,27,51,.08); }
.wds-brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; width: 100%; }
.wds-brand-grid-item { min-width: 0; overflow: hidden; }
.wds-brand-card { width: 100%; min-width: 0; min-height: 180px; padding: 28px 20px 18px; overflow: hidden; border: 1px solid #e8edf5; border-radius: 12px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.wds-brand-card:hover { transform: translateY(-4px); border-color: rgba(8,102,217,.28); box-shadow: 0 14px 30px rgba(7,27,51,.11); }
.wds-brand-card img { display: block; width: 100% !important; max-width: 160px !important; min-width: 0; height: 82px !important; max-height: 82px; margin: 0 auto; padding: 8px; object-fit: contain; }
.wds-brand-card p { margin: 9px 0 0; color: #071b33; font-size: 13px; font-weight: 800; }
.wds-footer-logo { display: block; width: min(100%, 340px); max-width: 100%; height: auto !important; object-fit: contain; object-position: left center; }

@media (max-width: 1199px) {
  .wds-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .wds-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 767px) {
  .wds-home-hero-wide { height: 440px; }
  .wds-home-hero-wide img { object-position: 68% center; }
  .wds-hero-slide::after { background: linear-gradient(0deg, rgba(2,11,29,.98) 0%, rgba(2,11,29,.80) 46%, rgba(2,11,29,.06) 86%); }
  .wds-home-hero-copy { top: auto; right: 24px; bottom: 42px; left: 24px; width: auto; transform: none; }
  .wds-home-hero-copy span { font-size: 10px; }
  .wds-home-hero-copy h2 { margin: 8px 0; font-size: clamp(30px, 10vw, 42px); line-height: 1.02; }
  .wds-home-hero-copy p { max-width: 440px; margin-bottom: 15px; font-size: 14px; line-height: 1.4; }
  .wds-home-hero-copy strong { padding: 10px 16px; font-size: 13px; }
  .wds-brands-hero { height: 540px; }
  .wds-brands-hero > img { object-position: 68% center; opacity: .54; }
  .wds-brands-hero::after { background: linear-gradient(0deg, rgba(2,11,29,.97), rgba(2,11,29,.24)); }
  .wds-brands-hero-copy { align-self: flex-end; padding-bottom: 48px; }
  .wds-brand-card { min-height: 145px; padding: 18px 10px 12px; }
  .wds-brand-card img { height: 68px !important; max-height: 68px; max-width: 130px !important; }
  .wds-footer-logo { width: min(100%, 280px); margin-right: auto; margin-left: 0; }

  /* Newsletter popup: compact, scroll-safe and touch friendly */
  #stack-popup-main-wrapper .stack-container {
    width: 100%;
    max-width: none;
    padding: 18px;
  }
  #stack-popup-main-wrapper .card-wrapper {
    width: calc(100% - 36px) !important;
    max-width: 480px;
    height: auto !important;
    max-height: calc(100dvh - 36px);
  }
  #stack-popup-main-wrapper .mirror-card {
    height: auto !important;
    max-height: calc(100dvh - 36px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 14px;
  }
  #stack-popup-main-wrapper .card-img {
    flex: 0 0 auto;
    width: 100% !important;
    height: clamp(135px, 34vw, 175px) !important;
    object-fit: cover;
    object-position: center;
  }
  #stack-popup-main-wrapper .wds-popup-content {
    flex: 0 0 auto;
    padding: 18px 18px 20px !important;
  }
  #stack-popup-main-wrapper .wds-popup-content h5 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.2;
  }
  #stack-popup-main-wrapper .wds-popup-content p {
    margin-bottom: 12px;
    font-size: 13px !important;
    line-height: 1.4;
  }
  #stack-popup-main-wrapper .wds-popup-form { margin-top: 10px !important; }
  #stack-popup-main-wrapper .wds-popup-form .form-group { margin-bottom: 10px !important; }
  #stack-popup-main-wrapper .wds-popup-form .form-control,
  #stack-popup-main-wrapper .wds-popup-form .vote-btn {
    min-height: 44px;
    font-size: 14px;
  }
  #stack-popup-main-wrapper .btn-close-stack {
    top: -9px;
    right: -9px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px), (max-height: 650px) {
  #stack-popup-main-wrapper .card-img { height: 120px !important; }
  #stack-popup-main-wrapper .wds-popup-content { padding: 14px 16px 16px !important; }
  #stack-popup-main-wrapper .wds-popup-content h5 { font-size: 18px; }
  #stack-popup-main-wrapper .wds-popup-content p { margin-bottom: 8px; font-size: 12px !important; }
}
