/**
 * Shufflrr Checkout — Product Switcher (Full Header Click Toggle)
 */

.shuf-hero-title-row{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  position:relative !important;
  width:max-content !important;
  max-width:100% !important;
  margin-bottom:4px !important;
  color:var(--shuf-navy,#05213F) !important;
}

/* Toggle is only the title + caret (not the divider/subtitle) */
.shuf-hero-toggle-btn{
  display:inline-flex !important;
  align-items:center !important;
  gap:12px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  cursor:pointer !important;
  color:inherit !important;
  font:inherit !important;
  line-height:inherit !important;
  text-align:left !important;
}

.shuf-hero-toggle-btn:focus{
  outline:none !important;
}

/* Keep product title styles in product CSS (h1.shuf-*-title) */
.shuf-hero-toggle-btn h1{
  margin:0 !important;
}

/* Caret icon next to title */
.shuf-hero-title-row .shuf-hero-caret{
  font-size:18px !important;
  font-weight:900 !important;
  color:currentColor !important;
  line-height:1 !important;
  transition:transform .2s ease !important;
}

/* Rotate caret when open */
.shuf-hero.is-open .shuf-hero-caret{
  transform:rotate(180deg) !important;
}

.shuf-product-switcher--blue{
  --shuf-switcher-accent:#0B81FF;
}

.shuf-product-switcher--purple{
  --shuf-switcher-accent:#7C3AED;
}

.shuf-product-switcher{
  flex:0 0 0 !important;
  width:0 !important;
  min-width:0 !important;
  font-family:'Plus Jakarta Sans',sans-serif !important;
}

/* Hidden by default (your PHP passes 'hidden' => true) */
.shuf-product-switcher.is-hidden{
  display:none !important;
}

/* IMPORTANT: let it show once the hero header is toggled open */
.shuf-hero.is-open .shuf-product-switcher.is-hidden{
  display:block !important;
}

/* Dropdown panel — hidden until parent .shuf-hero gets .is-open */
.shuf-product-switcher-wrap{
  display:none !important;
  position:absolute !important;
  top:calc(100% + 4px) !important;
  left:0 !important;
  z-index:99999 !important;
  width:100% !important;
  min-width:0 !important;
}

.shuf-hero.is-open .shuf-product-switcher-wrap{
  display:block !important;
}

.shuf-product-switcher-options,
.shuf-bc-wrap .shuf-product-switcher-options,
.shuf-ct-wrap .shuf-product-switcher-options,
.shuf-ad-wrap .shuf-product-switcher-options{
  display:block !important;
  margin:0 !important;
  padding:6px !important;
  list-style:none !important;
  background:#fff !important;
  border:1px solid #dadada !important;
  box-shadow:0 10px 30px rgba(0,0,0,.08) !important;
  border-radius:0 !important;
  width:100% !important;
  min-width:0 !important;
}

.shuf-product-switcher-options li{
  display:flex !important;
  align-items:center !important;
  min-height:40px !important;
  padding:0 14px !important;
  font-size:14px !important;
  font-weight:500 !important;
  color:#111827 !important;
  cursor:pointer !important;
  transition:.2s ease !important;
  white-space:nowrap !important;
}

.shuf-product-switcher-options li:hover{
  background:var(--shuf-switcher-accent) !important;
  color:#fff !important;
}

.shuf-product-switcher-options li.active{
  background:var(--shuf-switcher-accent) !important;
  color:#fff !important;
}

@media (max-width:768px){

  .shuf-hero-title-row{
      flex-direction:column !important;
      align-items:flex-start !important;
      gap:10px !important;
  }

  .shuf-hero.is-open .shuf-product-switcher.is-hidden{
      width:100% !important;
  }

  .shuf-hero.is-open .shuf-product-switcher-wrap{
      position:static !important;
      width:100% !important;
      margin-top:10px !important;
  }

  .shuf-product-switcher-wrap,
  .shuf-product-switcher-options{
      width:100% !important;
  }

}