
/* =========================================================
   BUY DAZZLE PAGE - matched to approved homepage/global styling
========================================================= */

.dhm-buy-dazzle-page-content {
  overflow: hidden;
  background: #ffffff;
}

.dhm-buy-online {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 96px) 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(54,214,255,0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f3fbff 100%);
}

.dhm-buy-online::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  border: 1px solid rgba(7,95,159,0.10);
  pointer-events: none;
}

.dhm-buy-online__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.dhm-buy-online__copy h2 {
  margin: 0 0 18px;
  color: var(--dhm-navy);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.dhm-buy-online__copy p {
  margin: 0;
  color: var(--dhm-muted);
  font-size: 18px;
  line-height: 1.66;
}

.dhm-buy-online__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.28), transparent 28%),
    linear-gradient(135deg, #021d38 0%, #075f9f 55%, #10b7ec 100%);
  box-shadow: var(--dhm-shadow);
}

.dhm-buy-online__panel span {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
}

.dhm-buy-online__panel h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.dhm-buy-online__panel p {
  margin: 0 0 24px;
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  line-height: 1.62;
}

/* Product area: homepage cards, static desktop and carousel mobile. */
#dhm-products-section {
  isolation: isolate;
}

@media (min-width: 981px) {
  #dhm-products-section .dhm-product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    transform: none !important;
  }

  #dhm-products-section .dhm-product-card {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  #dhm-products-section .dhm-card-edge-indicator {
    display: none !important;
  }
}

.dhm-buy-instore {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 96px) 20px;
  background:
    radial-gradient(circle at 14% 20%, rgba(54,214,255,0.20), transparent 25%),
    linear-gradient(180deg, #f3fbff 0%, #ffffff 100%);
}

.dhm-buy-instore__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.dhm-store-finder,
.dhm-retailer-card,
.dhm-retailer-modal__dialog {
  border: 1px solid var(--dhm-border);
  background: #ffffff;
  box-shadow: var(--dhm-shadow);
}

.dhm-store-finder {
  position: sticky;
  top: 106px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 30px;
}

.dhm-store-finder label {
  display: block;
  margin: 0 0 12px;
  color: var(--dhm-navy);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.dhm-store-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.dhm-store-search input {
  min-width: 0;
  flex: 1;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--dhm-border);
  border-radius: 16px;
  color: var(--dhm-text);
  font-size: 16px;
  outline: none;
}

.dhm-store-search input:focus {
  border-color: rgba(10,167,223,0.65);
  box-shadow: 0 0 0 4px rgba(54,214,255,0.16);
}

.dhm-store-finder__hint {
  margin: 0 0 18px;
  color: var(--dhm-muted);
  font-size: 14px;
  line-height: 1.5;
}

.dhm-store-finder__hint code {
  padding: 2px 6px;
  border-radius: 7px;
  background: #eaf8ff;
  color: var(--dhm-blue);
  font-weight: 800;
}

.dhm-store-map,
.dhm-retailer-modal__map {
  overflow: hidden;
  border-radius: 24px;
  background: #eaf8ff;
}

.dhm-store-map iframe,
.dhm-retailer-modal__map iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}

.dhm-retailer-list {
  display: grid;
  gap: 16px;
}

.dhm-retailer-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
}

.dhm-retailer-card[hidden] {
  display: none;
}

.dhm-retailer-card__logo {
  overflow: hidden;
  border-radius: 20px;
  background: #eaf8ff;
}

.dhm-retailer-card__logo img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.dhm-retailer-card h3 {
  margin: 0 0 8px;
  color: var(--dhm-navy);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.dhm-retailer-card p {
  margin: 0 0 16px;
  color: var(--dhm-muted);
  line-height: 1.5;
}

.dhm-retailer-card .dhm-btn-secondary {
  color: #ffffff;
  background: #052b4f;
  border-color: #052b4f;
}

.dhm-retailer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: 20px;
}

.dhm-retailer-modal.is-open {
  display: grid;
  place-items: center;
}

.dhm-retailer-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,29,56,0.62);
  backdrop-filter: blur(8px);
}

.dhm-retailer-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 30px;
  padding: clamp(22px, 3vw, 34px);
}

.dhm-retailer-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #052b4f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dhm-retailer-modal__header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.dhm-retailer-modal__header img {
  width: 100%;
  border-radius: 20px;
  background: #eaf8ff;
}

.dhm-retailer-modal__header h2 {
  margin: 0 0 8px;
  color: var(--dhm-navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.dhm-retailer-modal__header p:not(.dhm-eyebrow) {
  margin: 0;
  color: var(--dhm-muted);
  font-size: 18px;
}

.dhm-retailer-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 1.22fr);
  gap: 20px;
  align-items: start;
}

.dhm-retailer-modal__info {
  padding: 22px;
  border-radius: 24px;
  background: #f3fbff;
}

.dhm-retailer-modal__info p {
  margin: 0 0 14px;
  color: var(--dhm-muted);
  line-height: 1.55;
}

.dhm-retailer-modal__info strong {
  color: var(--dhm-navy);
}

.dhm-retailer-modal__info a:not(.dhm-btn) {
  color: var(--dhm-blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .dhm-buy-online__grid,
  .dhm-buy-instore__grid,
  .dhm-retailer-modal__grid {
    grid-template-columns: 1fr;
  }

  .dhm-store-finder {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .dhm-buy-online,
  .dhm-buy-instore {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dhm-buy-online__panel,
  .dhm-store-finder,
  .dhm-retailer-card,
  .dhm-retailer-modal__dialog {
    border-radius: 22px;
  }

  .dhm-store-search,
  .dhm-retailer-modal__header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dhm-store-search .dhm-btn,
  .dhm-buy-online__panel .dhm-btn {
    width: 100%;
  }

  .dhm-retailer-card {
    grid-template-columns: 1fr;
  }

  .dhm-store-map iframe,
  .dhm-retailer-modal__map iframe {
    height: 320px;
  }

  .dhm-retailer-modal {
    padding: 12px;
  }

  .dhm-retailer-modal__header {
    padding-right: 44px;
  }
}

/* 2026-05-11: empty promoted partner stockist state */
.dhm-retailer-empty{
  padding:24px;
  border-radius:24px;
  background:#f7fbff;
  border:1px solid rgba(0,145,213,.18);
  box-shadow:0 12px 28px rgba(5,43,79,.07);
  color:var(--dhm-navy,#052b4f);
}
.dhm-retailer-empty h3{margin:0 0 8px;font-size:22px;line-height:1.2;}
.dhm-retailer-empty p{margin:0;color:var(--dhm-muted,#607487);font-weight:700;}

/* 2026-05-11m: keep Buy Dazzle retailer logos square and fully visible */
.dhm-retailer-card__logo{
  width:100%!important;
  aspect-ratio:1 / 1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:12px!important;
  background:#fff!important;
  border:1px solid rgba(5,43,79,.08)!important;
  box-sizing:border-box!important;
}
.dhm-retailer-card__logo img{
  width:100%!important;
  height:100%!important;
  aspect-ratio:1 / 1!important;
  object-fit:contain!important;
  object-position:center!important;
}
@media(max-width:640px){
  .dhm-retailer-card__logo{
    max-width:180px!important;
    margin:0 auto!important;
  }
}


/* 2026-05-11: compact retailer detail modal with icon contact rows */
.dhm-retailer-modal.is-open{
  align-items:center!important;
  justify-items:center!important;
}
.dhm-retailer-modal__dialog{
  width:min(920px,calc(100vw - 32px))!important;
  max-height:calc(100dvh - 32px)!important;
  overflow:hidden!important;
  padding:clamp(16px,2.1vw,24px)!important;
  border-radius:26px!important;
  box-sizing:border-box!important;
}
.dhm-retailer-modal__header{
  grid-template-columns:clamp(96px,14vw,132px) minmax(0,1fr)!important;
  gap:16px!important;
  margin-bottom:16px!important;
  padding-right:48px!important;
}
.dhm-retailer-modal__header img{
  width:100%!important;
  aspect-ratio:1 / 1!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:10px!important;
  border-radius:18px!important;
  background:#ffffff!important;
  border:1px solid rgba(5,43,79,.08)!important;
  box-sizing:border-box!important;
}
.dhm-retailer-modal__header h2{
  font-size:clamp(24px,3vw,38px)!important;
  line-height:1.05!important;
  margin-bottom:5px!important;
}
.dhm-retailer-modal__header p{font-size:16px!important;}
.dhm-retailer-modal__grid{
  grid-template-columns:minmax(260px,.82fr) minmax(300px,1.18fr)!important;
  gap:16px!important;
}
.dhm-retailer-modal__info{
  padding:16px!important;
  border-radius:20px!important;
}
.dhm-retailer-modal__row{
  margin:0 0 10px!important;
  line-height:1.35!important;
}
.dhm-retailer-modal__row--icon{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.dhm-retailer-modal__icon{
  flex:0 0 34px!important;
  width:34px!important;
  height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:#eaf8ff!important;
  border:1px solid rgba(0,145,213,.16)!important;
}
.dhm-retailer-modal__icon img{
  width:18px!important;
  height:18px!important;
  display:block!important;
}
.dhm-retailer-modal__info a:not(.dhm-btn){
  text-decoration:none!important;
  border-bottom:0!important;
}
.dhm-retailer-modal__directions{
  width:100%!important;
  margin-top:2px!important;
  min-height:42px!important;
  padding:11px 14px!important;
  box-sizing:border-box!important;
}
.dhm-retailer-modal__map iframe{
  height:clamp(260px,44vh,410px)!important;
}
@media(max-width:760px){
  .dhm-retailer-modal{padding:10px!important;}
  .dhm-retailer-modal__dialog{
    width:calc(100vw - 20px)!important;
    max-height:calc(100dvh - 20px)!important;
    padding:14px!important;
    border-radius:20px!important;
  }
  .dhm-retailer-modal__close{
    top:10px!important;
    right:10px!important;
    width:36px!important;
    height:36px!important;
    font-size:24px!important;
  }
  .dhm-retailer-modal__header{
    grid-template-columns:82px minmax(0,1fr)!important;
    gap:12px!important;
    margin-bottom:12px!important;
    padding-right:40px!important;
  }
  .dhm-retailer-modal__header img{padding:7px!important;border-radius:14px!important;}
  .dhm-retailer-modal__header h2{font-size:clamp(22px,7vw,30px)!important;}
  .dhm-retailer-modal__grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .dhm-retailer-modal__info{padding:12px!important;border-radius:16px!important;}
  .dhm-retailer-modal__row{margin-bottom:7px!important;font-size:14px!important;}
  .dhm-retailer-modal__icon{width:30px!important;height:30px!important;flex-basis:30px!important;}
  .dhm-retailer-modal__icon img{width:16px!important;height:16px!important;}
  .dhm-retailer-modal__directions{min-height:38px!important;padding:9px 12px!important;font-size:14px!important;}
  .dhm-retailer-modal__map iframe{height:180px!important;}
}
@media(max-width:420px),(max-height:680px){
  .dhm-retailer-modal__map iframe{height:132px!important;}
  .dhm-retailer-modal__header{grid-template-columns:70px minmax(0,1fr)!important;}
  .dhm-retailer-modal__header h2{font-size:22px!important;}
  .dhm-retailer-modal__header p{font-size:14px!important;}
  .dhm-retailer-modal__row--address,
  .dhm-retailer-modal__row[data-dhm-retailer-modal-hours-row]{font-size:13px!important;}
}

.dhm-product-price{margin:8px 0 14px;color:var(--navy,#052b4f);font-weight:900;font-size:1.12rem;}
.dhm-product-selector-result{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;align-items:center;text-align:left;}
.dhm-product-selector-image{width:110px;height:110px;object-fit:contain;border-radius:16px;background:#fff;padding:8px;box-shadow:0 8px 18px rgba(5,43,79,.08);}
.dhm-product-selector-items{margin:8px 0;padding-left:18px;}
@media(max-width:640px){.dhm-product-selector-result{grid-template-columns:1fr;text-align:center}.dhm-product-selector-image{margin:0 auto}}

/* 2026-05-12 public retail product actions */
.dhm-product-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}.dhm-product-actions .dhm-btn{min-width:132px;justify-content:center}.dhm-product-actions--secondary{margin-top:10px}@media(max-width:640px){.dhm-product-actions{display:grid;grid-template-columns:1fr;}.dhm-product-actions .dhm-btn{width:100%;}}

/* 2026-05-12: mobile store logo full width and contained */
@media (max-width: 640px) {
  .dhm-retailer-card {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }
  .dhm-retailer-card__logo {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px !important;
    box-sizing: border-box !important;
  }
  .dhm-retailer-card__logo img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff !important;
  }
}

.dhm-product-actions--secondary .dhm-btn {
  display: inline-flex !important;
}

/* 2026-05-12: product carousel repair and More Info hardening */
#dhm-products-section .dhm-product-actions,
.dhm-product-card .dhm-product-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:center!important;
  margin-top:12px!important;
}
#dhm-products-section .dhm-product-actions .dhm-btn,
.dhm-product-card .dhm-product-actions .dhm-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:132px!important;
}
@media(max-width:720px){
  #dhm-products-section .dhm-product-actions,
  .dhm-product-card .dhm-product-actions{display:grid!important;grid-template-columns:1fr!important;}
  #dhm-products-section .dhm-product-actions .dhm-btn,
  .dhm-product-card .dhm-product-actions .dhm-btn{width:100%!important;}
}

/* 2026-05-12: carousel action button colour and More Info emphasis */
#dhm-products-section .dhm-product-actions button[data-cart-add],
.dhm-product-card .dhm-product-actions button[data-cart-add] {
  background: var(--dhm-blue, #0799d6) !important;
  border-color: var(--dhm-blue, #0799d6) !important;
  color: #ffffff !important;
}

#dhm-products-section .dhm-product-actions button[data-cart-add]:hover,
.dhm-product-card .dhm-product-actions button[data-cart-add]:hover,
#dhm-products-section .dhm-product-actions button[data-cart-add]:focus-visible,
.dhm-product-card .dhm-product-actions button[data-cart-add]:focus-visible {
  background: #052b4f !important;
  border-color: #052b4f !important;
  color: #ffffff !important;
}


/* 2026-05-12: reduce mobile retailer card logo image height by 35% */
@media (max-width: 640px) {
  .dhm-retailer-card__logo {
    aspect-ratio: 20 / 13 !important;
    min-height: 0 !important;
  }

  .dhm-retailer-card__logo img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
}


/* 2026-05-12: place carousel More Info below feature list, smaller and centred. */
#dhm-products-section .dhm-carousel-more-info,
.dhm-product-card .dhm-carousel-more-info {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 36px !important;
  justify-content: center !important;
  align-items: center !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 10px auto 2px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  background: #e8f5fc !important;
  border-color: rgba(5, 43, 79, .18) !important;
  color: #052b4f !important;
  font-size: .9rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

#dhm-products-section .dhm-carousel-more-info:hover,
#dhm-products-section .dhm-carousel-more-info:focus-visible,
.dhm-product-card .dhm-carousel-more-info:hover,
.dhm-product-card .dhm-carousel-more-info:focus-visible {
  background: #052b4f !important;
  border-color: #052b4f !important;
  color: #ffffff !important;
}

/* 2026-05-12: narrower carousel More Info button. */
#dhm-products-section .dhm-carousel-more-info,
.dhm-product-card .dhm-carousel-more-info{max-width:128px!important;padding-left:12px!important;padding-right:12px!important;font-size:.84rem!important}

/* 2026-05-12: smaller carousel More Info width */
#dhm-products-section .dhm-carousel-more-info,.dhm-product-card .dhm-carousel-more-info{max-width:110px!important;min-width:0!important;padding-left:10px!important;padding-right:10px!important}

/* 2026-05-12: no free-shipping badges, inline carousel actions, discounted prices, clean calculator action row. */
.dhm-free-shipping-badge{display:none!important;}
.dhm-carousel-actions{display:flex!important;align-items:center!important;justify-content:center!important;gap:15px!important;flex-wrap:wrap!important;}
.dhm-carousel-actions .dhm-carousel-more-info{margin-right:0!important;padding-right:15px!important;}
.dhm-carousel-price{display:flex!important;align-items:baseline!important;justify-content:center!important;gap:10px!important;text-align:center!important;font-size:clamp(1.35rem,2.5vw,1.7rem)!important;font-weight:950!important;line-height:1.1!important;}
.dhm-carousel-price .dhm-card-price-current.is-struck{font-size:.78em!important;color:#718497!important;text-decoration:line-through!important;text-decoration-thickness:2px!important;}
.dhm-carousel-price .dhm-card-price-discounted{color:#146c2e!important;font-size:1.08em!important;font-weight:1000!important;}
.dhm-carousel-price .dhm-card-price-discounted[hidden]{display:none!important;}
.dhm-dose-modal__shopify,.dhm-product-selector-result .dhm-product-actions{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;}
.dhm-product-selector-image{align-self:start!important;object-position:top center!important;}
