/* Product form */

.product-form {
  display: block;
}

.product-form__error-message-wrapper:not([hidden]) {
  display: flex;
  align-items: flex-start;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.product-form__error-message-wrapper svg {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.7rem;
  margin-top: 0.5rem;
}

.product-form__buttons {
  display: flex;
  flex-wrap: wrap;
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  justify-content: center;
}

/* Styles from page */
.subscription-tabs-wrapper {
  margin: 20px 0;
}

.subscription-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.subscription-tab {
  flex: 1;
  padding: 10px 20px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
}

.subscription-tab:first-child {
  border-right: 2px solid #e5e5e5;
}

.subscription-tab.active {
  background: #4A9F45;
  color: #fff;
}

.subscription-tab:hover:not(.active) {
  background: #f9f9f9;
}

.subscription-content {
  display: none;
}

.subscription-content.active {
  display: block;
}

.subscription-single-bottle {
  border: 2px solid #4A9F45;
  border-radius: 8px;
  padding: 16px;
  background: #F2FAF1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.subscription-single-bottle .subscription-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #4A9F45;
  border-radius: 50%;
  background: #4A9F45;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
}

.subscription-single-bottle .subscription-radio i {
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.subscription-content-wrapper {
  flex: 1;
}

.subscription-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #0c89ef;
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.subscription-bottle-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subscription-bottle-title {
  font-size: 18px;
  font-weight: 700;
  color: #1C1C1C;
}

.subscription-price {
  font-size: 22px;
  font-weight: 700;
  color: #4A9F45;
}

.subscription-original-price {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
}

.subscription-details {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.subscription-details strong {
  color: #4A9F45;
}

.subscription-frequency {
  margin-top: 8px;
  font-style: italic;
  color: #666;
}

.bottle-selector-wrapper {
  margin: 20px 0;
}

.bottle-selector-heading {
  font-size: 18px;
  font-weight: 600;
  color: #1C1C1C;
  text-align: left;
}

.bottle-options {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.bottle-option {
  width: 100%;
  position: relative;
  cursor: pointer;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 9px 13px;
  transition: all 0.3s ease;
  background: #fff;
  display: flex;
  align-items: start;
  gap: 16px;
  flex-direction: column;
}

.bottle-option:hover {
  border-color: #4A9F45;
  box-shadow: 0 2px 8px rgba(74, 159, 69, 0.1);
}

.bottle-option.selected {
  border-color: #4A9F45;
  background: #F2FAF1;
}

.bottle-option-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #999;
  border-radius: 50%;
  background: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bottle-option:not(.selected) .bottle-option-radio {
  width: 16px;
  height: 16px;
  border-color: #ccc;
}

.bottle-option.selected .bottle-option-radio {
  border-color: #4A9F45;
  background: #4A9F45;
}

.bottle-option-radio::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  line-height: 1;
}

.bottle-option.selected .bottle-option-radio::after {
  opacity: 1;
}

.bottle-option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bottle-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 0px 4px 4px 4px;
  font-size: 11px;
  font-weight: 600;
  background: #6c757d;
  color: #fff;
  z-index: 1;
  text-transform: uppercase;
}

.bottle-badge:before {
  content: "";
  position: absolute;
  display: block;
  left: -12px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 0px solid transparent;
  border-right: 13px solid #4d545a;
  top: 0px;
}

.bottle-option.selected .bottle-badge {
  background: #fc7103;
}

.bottle-option.selected .bottle-badge.badge-best {
  background: #007bff;
}

.bottle-option.selected .bottle-badge.badge-best:before {
  border-right-color: #0c4c91;
}

.bottle-option.selected .bottle-badge.badge-popular:before {
  border-right-color: #a55211;
}

.bottle-quantity {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1C;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bottle-quantity-number {
  font-size: 16px;
  color: #1C1C1C;
}

.bottle-option:not(.selected) .bottle-quantity-number {
  color: #868686;
}

.bottle-number-highlight {
  font-size: 22px;
  color: #1C1C1C;
  transition: color 0.2s ease;
}

.bottle-option:not(.selected) .bottle-number-highlight {
  color: #868686;
}

.bottle-option.selected .bottle-number-highlight {
  color: #4A9F45;
  font-weight: 700;
}

.bottle-savings {
  font-size: 14px;
  color: #666;
  font-weight: 600;
  flex-basis: 100%;
}

.bottle-option:not(.selected) .bottle-savings {
  color: #868686;
}

.bottle-supply {
  font-size: 14px;
  font-style: italic;
  line-height: 1.0em;
  font-weight: 400;
  margin-bottom: 0px;
  color: #666;
}

.bottle-pricing {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.bottle-price {
  font-size: 22px;
  font-weight: 700;
  color: #1C1C1C;
  line-height: 1;
}

.bottle-option:not(.selected) .bottle-price {
  color: #868686;
}

.bottle-compare-price {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  line-height: 1;
}

.bottle-option:not(.selected) .bottle-compare-price {
  color: #b8b8b8;
}

.bottle-option.selected .bottle-compare-price {
  color: #E53935;
}

.bottle-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .bottle-options {
    display: flex;
    flex-direction: column;
  }
  .bottle-option {
    display: flex;
    align-items: center;
    flex-direction: row;
  }
  .bottle-pricing {
    align-items: flex-end;
  }
}

@media (max-width: 575px) {
  .bottle-options {
    display: flex;
    flex-direction: column;
  }
  .bottle-option {
    display: flex;
    align-items: center;
    flex-direction: row;
  }
  .bottle-pricing {
    align-items: flex-end;
  }
}

.product-info-accordion {
  border-top: 1px solid #e5e5e5;
}

.accordion-item {
  border-bottom: 1px solid #e5e5e5;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.accordion-item[open] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 0 15px 0;
  color: #666;
  line-height: 1.6;
}

.price-crossout {
    font-size: 28px;
    font-weight: 400;
    color: rgb(191, 0, 5);
    text-decoration: line-through 2px;
}

.prod-price {
    font-size: 40px;
    line-height: 40px;
    color: #212227;
    font-weight: 700;
    position: relative;
}

.savings {
    font-size: 20px;
    font-weight: 700;
    color: #4A9F45;
}

/* STRUCTURE ITEMS */
.section-product {
  padding-top: 50px;
}

#product-intro h1, .product-title {
  font-size: 40px;
  font-weight: 700;
  color: #212227;
  text-shadow: 0px 2px 2px rgba(255, 255, 255, 1.0);
  font-family: hero-new, "Helvetica-Neue", Helvetica, Arial, sans-serif;
  line-height: 1.0em;
}

.buy-box-title {
  margin-bottom: 10px;
}

.flavor {
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 7px 15px;
  border-radius: 24px;
  box-shadow: 0px 2px 3px rgb(255 255 255);
  font-weight: 600;
  color: white !important;
  font-family: hero-new, "Helvetica-Neue", Helvetica, Arial, sans-serif;
  display: inline-block;
  margin-bottom: 15px !important;
}

.flavor-hairserum {
    background: linear-gradient(45deg, #11c584, #a399df);
    text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.5);
}

.small-stars {
    font-size: 14px;
    font-weight: 700;
    color: #656565;
    margin-bottom: 7px;
    text-transform: uppercase;
}

/* scoped: was a bare `p, li` rule leaking into the whole page */
.uc-offer-section p,
.uc-offer-section li,
.buy-box-wrap p,
.buy-box-wrap li {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
    font-family: hero-new, "Helvetica-Neue", Helvetica, Arial, sans-serif;
}

.small-stars .fa-star {
    color: #fc9903;
    font-size: 18px;
}

.product-images {
}


@media (max-width: 991px) {
  .img-product {
    width: 400px;
    display: block;
    margin: 0px auto 40px;
    position: relative;
  }
}

.buy-box-wrap {
  padding: 0px 40px;
}

/* scoped: these are the theme's own button classes — only style OUR button */
.buy-box-wrap .btn-main, .buy-box-wrap .btn-orange {
    background: #4A9F45;
    padding: 20px 25px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    line-height: 0.9em;
    white-space: normal;
    text-shadow: 0px 1px 2px rgba(0,0,0,0.5);
    color: white;
}

.buy-box-wrap .btn-main {
    white-space: normal;
    display: inline-block;
    transition: all .15s ease;
    border: none;
}

.buy-box-wrap .btn-orange {
    font-size: 24px;
}

/* ==================================================================
   UltraCart plugin adaptation additions
   ================================================================== */

/* Hidden UltraCart shortcode output (items + price sources).
   If a plugin version skips initializing display:none forms, switch to
   the off-screen variant below. */
.ucw-hidden {
  display: none !important;
}

/* Alternative off-screen hiding if display:none breaks the plugin JS:
.ucw-hidden {
  position: absolute !important;
  left: -99999px !important;
  top: 0 !important;
  width: 1px; height: 1px; overflow: hidden;
}
*/

/* Option cards hidden by scent group switching */
.bottle-option[hidden] {
  display: none !important;
}

/* Scent selector (carried over from current pages, restyled to match) */
.scent-selection {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 15px 0;
}

.scent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.scent:hover {
  border-color: #4A9F45;
}

.scent.selected-scent {
  border-color: #fc7103;
  background: #F2FAF1;
}

.scent .scent-icon {
  width: 26px;
  height: auto;
}

.scent.purple { color: #a399df; }
.scent.mint   { color: #11c584; }

.pack-savings {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-align: center;
  margin: 8px 0;
}

/* Qty + Add to Cart row */
.uc-offer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.uc-offer-actions .qty-label {
  font-size: 18px;
  font-weight: 700;
  color: #1C1C1C;
}

.uc-offer-actions .qty-field {
  width: 64px;
  height: 52px;
  text-align: center;
  font-size: 18px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
}

.uc-offer-actions .btn-add {
  flex: 1;
  font-family: hero-new, "Helvetica-Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
}

/* Buy-box footer benefits (carried over from current pages) */
.buy-benefits {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.buy-benefit {
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.buy-benefit .fa,
.buy-benefit i {
  color: #4A9F45;
  margin-right: 5px;
}

@media (max-width: 575px) {
  .uc-offer-actions {
    flex-wrap: wrap;
  }
  .uc-offer-actions .btn-add {
    width: 100%;
    flex: none;
  }
  .buy-benefits {
    justify-content: center;
  }
}

/* ==================================================================
   Product gallery — the plugin's ultraslider, relocated to the left
   column by the engine (one .uc-gallery-slot per item, selected shown)
   ================================================================== */

.product-gallery {
  position: sticky;
  top: 20px;
}

.uc-gallery-slot[hidden] {
  display: none !important;
}

/* center the slider pieces the plugin builds around ul.ultraslider-html.
   width:100% !important beats the plugin's uc-wp.css rule
   `.uc-item section.uc-item-images { width: 33% }` (min-width:1025px), which
   matches when the gallery sits inside any ancestor carrying the plugin's
   .uc-item class — use .uc-offer-section on your own wrapper, not .uc-item */
.product-gallery .uc-item-images,
.product-gallery section.uc-item-images {
  width: 100% !important;
  text-align: center;
}

.product-gallery .ultraslider-medium-holder {
  /* the slider lib writes inline max-width/height from data-medium-dimensions
     and an inline max-height on the img measured at resize time (often before
     the grid has settled) — override both so sizing is pure CSS, full width */
  max-width: 100% !important;
  width: 100%;
  height: auto !important;
  margin: 0 auto 12px;
  cursor: zoom-in;
}

.product-gallery .ultraslider-medium-holder img {
  max-height: none !important;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.product-gallery .ultraslider-thumbnail-wrapper {
  margin: 0 auto;
}

.product-gallery .ultraslider-html li {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.product-gallery .ultraslider-html li:hover,
.product-gallery .ultraslider-html li.ultraslider-active {
  border-color: #4A9F45;
}

@media (max-width: 991px) {
  .product-gallery {
    position: static;
    margin-bottom: 20px;
  }
}


/* ==================================================================
   Out-of-stock state (plugin renders a disabled "Out of Stock" button)
   ================================================================== */

.bottle-option.sold-out {
  opacity: 0.55;
}

.bottle-option.sold-out .oos-flag {
  color: #c0392b;
  font-weight: 700;
}

.btn-add.btn-disabled {
  background: #b5b5b5 !important;
  border-color: #b5b5b5 !important;
  cursor: not-allowed;
  pointer-events: auto; /* keep clickable so the state is discoverable, engine blocks the add */
}

/* ==================================================================
   Layout polish round (equal cards, hover shake, mobile spacing, qty)
   ================================================================== */

/* 1. Equal-height option cards: quantity/supply top-aligned, pricing
      pinned to the bottom edge so prices line up across cards */
.bottle-options {
  align-items: stretch;
}

#onetime-content .bottle-option,
#subscription-content .bottle-option {
  display: flex;
  flex-direction: column;
}

.bottle-option .bottle-pricing {
  margin-top: auto;
  padding-top: 6px;
}

/* 2. Hover shake: the theme toggles a border on .btn-main/.btn-orange
      hover, changing the box size. Reserve a constant transparent border
      in every state so nothing shifts; hover feedback via color only. */
.uc-offer-actions .btn-add,
.uc-offer-actions .btn-add:hover,
.uc-offer-actions .btn-add:focus,
.uc-offer-actions .btn-add:active {
  border: 3px solid transparent !important;
  transform: none !important;
  outline: none;
}

.uc-offer-actions .btn-add:hover {
  background: #3B8639;
}

/* 4. Quantity hidden for now — pack options already cover it.
      The engine still reads the injected input (value 1). */
.uc-offer-actions .qty-label,
.uc-offer-actions .qty-field,
.uc-offer-actions [data-uc-qty-slot] {
  display: none !important;
}

.uc-offer-actions .btn-add {
  width: 100%;
  flex: 1;
}

/* 3 & 5. Mobile: full-width offer column, calmer top padding */
@media (max-width: 767px) {
  .buy-box-wrap {
    padding: 0;
  }

  .section-product {
    padding-top: 50px;
  }

  /* mobile cards are horizontal rows — pin price to the right instead */
  .bottle-option .bottle-pricing {
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
  }
}

/* ==================================================================
   Fix round: mobile radio layout regression + heading/badge spacing
   ================================================================== */

/* The equal-height rule (#onetime-content .bottle-option { flex-direction:
   column }) outranks the mobile row layout via ID specificity — restore the
   horizontal card layout on mobile at matching specificity. */
@media (max-width: 768px) {
  #onetime-content .bottle-option,
  #subscription-content .bottle-option {
    flex-direction: row;
    align-items: center;
  }

  .bottle-option .bottle-pricing {
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    align-items: flex-end;
  }
}

/* Desktop: clear space under "Choose Your Savings:" so the MOST POPULAR /
   BEST DEAL badges (which rise above the card tops) don't collide with it.
   Same clearance above the subscription pane's cards (tabs sit above them). */
@media (min-width: 769px) {
  .bottle-selector-heading {
    margin-bottom: 30px;
  }

  #subscription-content .bottle-options {
    margin-top: 30px;
  }
}

/* ==================================================================
   Fix round: link-state color on the button + mobile badge overlap
   ================================================================== */

/* The theme's a:visited/a:link rules recolor the Add to Cart anchor blue —
   force white in every link state. */
.uc-offer-actions .btn-add,
.uc-offer-actions .btn-add:link,
.uc-offer-actions .btn-add:visited,
.uc-offer-actions .btn-add:hover,
.uc-offer-actions .btn-add:active,
.uc-offer-actions .btn-add:focus {
  color: #fff !important;
}

/* Mobile: cards WITH a badge get extra top padding so the badge (absolutely
   positioned top-right) stops overlaying the price. Cards without badges
   (and the taller 4/6 cards, which already clear it) keep their padding. */
@media (max-width: 768px) {
  .bottle-option:has(.bottle-badge) {
    padding-top: 17px;
  }
}

/* ==================================================================
   Yotpo bottomLine — match the original .small-stars styling
   (18px #fc9903 stars, 14px bold uppercase #656565 count, 7px margin)
   Scoped to the offer box; !important needed to beat Yotpo's own CSS,
   which loads asynchronously after ours.
   ================================================================== */

.buy-box-wrap .yotpo.bottomLine {
  margin-bottom: 7px;
  min-height: 24px; /* reserve the line so the layout doesn't jump when Yotpo loads */
}

.buy-box-wrap .yotpo .yotpo-bottomline {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* stars: full, half, and empty variants */
.buy-box-wrap .yotpo .yotpo-icon-star,
.buy-box-wrap .yotpo .yotpo-icon-half-star,
.buy-box-wrap .yotpo .yotpo-icon-empty-star {
  color: #fc9903 !important;
  font-size: 18px !important;
}

/* "112 Reviews" link — match the old text, kill Yotpo's blue link styling */
.buy-box-wrap .yotpo .yotpo-bottomline .text-m,
.buy-box-wrap .yotpo .yotpo-bottomline a,
.buy-box-wrap .yotpo .yotpo-bottomline a:link,
.buy-box-wrap .yotpo .yotpo-bottomline a:visited,
.buy-box-wrap .yotpo .yotpo-bottomline a:hover {
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #656565 !important;
  text-transform: uppercase;
  text-decoration: none !important;
}

.buy-box-wrap .yotpo .yotpo-bottomline a:hover {
  color: #1C1C1C !important;
}

/* hide Yotpo's stray "write a review" stub if the theme surfaces it here */
.buy-box-wrap .yotpo .write-review-btn-hidden {
  display: none !important;
}

/* ==================================================================
   Fix round: heading spacing (lost to the scoped p rule) 
   ================================================================== */

/* .buy-box-wrap p { margin-bottom: 0 } outranks the earlier
   .bottle-selector-heading rule — restore the gap at higher specificity */
.buy-box-wrap .bottle-selector-heading {
  margin-bottom: 16px;
}

@media (min-width: 769px) {
  .buy-box-wrap .bottle-selector-heading {
    margin-bottom: 30px; /* clearance for the badges rising above the cards */
  }
}

/* ==================================================================
   SOMALEAF ADDITIONS (on top of the EverBella v6 base)
   Palette: SomaLeaf green #4A9F45 / dark #3B8639, accent orange #F5821F,
   savings red #E53935.
   ================================================================== */

/* --- Badges: always brand-colored (SomaLeaf design shows Most Popular /
       Best Value colored on every card, not only the selected one) --- */
.bottle-badge.badge-popular {
  background: #4A9F45;
}
.bottle-badge.badge-popular:before {
  border-right-color: #34702F;
}
.bottle-badge.badge-best {
  background: #F5821F;
}
.bottle-badge.badge-best:before {
  border-right-color: #B35C0F;
}
/* keep the same colors when selected (overrides the base
   .bottle-option.selected .bottle-badge rules) */
.bottle-option.selected .bottle-badge.badge-popular {
  background: #4A9F45;
}
.bottle-option.selected .bottle-badge.badge-popular:before {
  border-right-color: #34702F;
}
.bottle-option.selected .bottle-badge.badge-best {
  background: #F5821F;
}
.bottle-option.selected .bottle-badge.badge-best:before {
  border-right-color: #B35C0F;
}

/* --- Product image inside each option card --- */
.bottle-option {
  /* base is column on desktop; with an image we want radio | img | text | price on one row */
  flex-direction: row;
  align-items: center;
}
.bottle-option-img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.bottle-option-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.bottle-option .bottle-pricing {
  margin-left: auto;
  align-items: flex-end;
}
@media (max-width: 768px) {
  .bottle-option-img {
    width: 52px;
    height: 52px;
  }
}

/* --- "Up to 40%" pill inside the Subscribe tab label --- */
.subscription-tab .tab-save-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #F5821F;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* --- Benefits of Subscribing (subscription tab only) --- */
.subscribe-benefits {
  margin-top: 16px;
  padding: 14px 18px;
  background: #F2FAF1;
  border: 1px solid #D8ECD4;
  border-radius: 8px;
}
.subscribe-benefits-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #34702F;
  margin-bottom: 8px;
}
.subscribe-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.subscribe-benefits li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #1C1C1C;
}
.subscribe-benefits li:last-child {
  margin-bottom: 0;
}
.subscribe-benefits li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: #4A9F45;
  font-size: 13px;
}

/* ==================================================================
   SOMALEAF FIX ROUND 2
   ================================================================== */

/* 1. Footer trust icons in a single line on desktop (they wrapped to a
      second row). Nowrap + shrinkable items; centered stack stays on mobile. */
@media (min-width: 576px) {
  .buy-box-wrap .buy-benefits {
    flex-wrap: nowrap;
  }
  .buy-box-wrap .buy-benefit {
    flex: 0 1 auto;
    white-space: nowrap;
  }
}

/* 2. Empty thumbnail slot (no image found in any candidate item) — collapse
      so the card doesn't reserve a blank 64px square. */
.bottle-option-img.thumb-empty {
  display: none;
}

/* 3. The subscribe pane now has its own "Choose Your Savings:" heading —
      the heading's own margin provides the badge clearance, so drop the
      pane-level margin that was there for the heading-less layout
      (otherwise the gap doubles to 60px on desktop). */
@media (min-width: 769px) {
  #subscription-content .bottle-selector-wrapper .bottle-options {
    margin-top: 0;
  }
}

/* 4. Price centered inside the option cards on desktop. Cards are COLUMNS
      there (#onetime-content/#subscription-content .bottle-option rules win
      on specificity), and the margin-left:auto set for the mobile ROW layout
      was pushing the pricing block to the card's right edge. Mobile keeps
      the right-aligned price next to the text. */
@media (min-width: 769px) {
  #onetime-content .bottle-option .bottle-pricing,
  #subscription-content .bottle-option .bottle-pricing {
    margin-left: 0;
    align-self: center;
    align-items: center;
    text-align: center;
  }
}

/* 5. Align the price line across cards on desktop. The pricing block is
      bottom-pinned (margin-top:auto), so the 1-bottle card — which has no
      crossout compare line — showed its price a line LOWER than the 3/6
      cards. Reserve the two-line height in every card and keep the price
      at the top of that block: 22px price + 2px gap + 16px compare = 40px.
      No placeholder markup needed; the empty line is just reserved space. */
@media (min-width: 769px) {
  #onetime-content .bottle-option .bottle-pricing,
  #subscription-content .bottle-option .bottle-pricing {
    min-height: 40px;
    justify-content: flex-start;
  }
}

/* 6. Active UltraCart Sale Cost showcase. The plugin's markup carries BOTH
      prices during a sale (.js-uc-price = regular, .js-uc-sale-price = sale,
      wrapper gets .uc-sale) — the engine anchors all crossouts on the
      REGULAR price and flags on-sale items with this chip. */
.bottle-sale-flag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #E53935;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.mirrored-price-area .bottle-sale-flag {
  font-size: 13px;
  padding: 2px 10px;
}

/* 7. Scent picker (deodorant) — colored circle swatches.
      v2.7.1: the color now lives on the <a> ITSELF — the previous inner
      <span class="swatch"> approach broke on staging (WP filters strip empty
      spans, leaving white circles), and the EverBella base .scent pill
      styles (white background, 10px/22px padding, gray border, green
      selected fill) were bleeding through. Everything here is scoped under
      .scent-picker with enough specificity to beat those base rules.
      Selected ring = brand orange box-shadow; the white border makes the
      gap between fill and ring. */
.scent-picker {
  margin: 4px 0 20px;
}
.scent-picker-label {
  font-size: 17px;
  font-weight: 700;
  color: #4d545a;
}
.scent-picker-label .scent-name {
  color: #4A9F45;
}
.scent-picker .scent-selection {
  display: flex;
  justify-content: flex-start; /* change to center to center the swatches */
  gap: 16px;
  margin: 10px 0 0;
}
.scent-picker a.scent,
.scent-picker a.scent:hover,
.scent-picker a.scent.selected-scent {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #e5e5e5; /* fallback; per-scent colors below override */
}
.scent-picker a.scent {
  box-shadow: 0 0 0 2px #D8D8D8; /* subtle outline so pale colors read as swatches */
  transition: box-shadow 0.15s, transform 0.1s;
}
.scent-picker a.scent:hover {
  transform: scale(1.08);
}
.scent-picker a.scent.selected-scent {
  box-shadow: 0 0 0 3px #F5821F;
}
.scent-picker a.scent .swatch {
  display: none; /* legacy inner span — color is on the link now */
}
/* per-scent fills — last in the cascade so they win in every state */
.scent-picker a.scent.scent-unscented { background: #6CBE45; }
.scent-picker a.scent.scent-ginger    { background: #F08200; }
.scent-picker a.scent.scent-lavender  { background: #7B76C4; }
@media (max-width: 575px) {
  .scent-picker a.scent,
  .scent-picker a.scent:hover,
  .scent-picker a.scent.selected-scent {
    width: 36px;
    height: 36px;
  }
}

/* 8. Scent captions — one word under each swatch (clearer than any icon
      for scents). The active caption follows the selection. */
.scent-picker .scent-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 64px;
}
.scent-picker .scent-caption {
  font-size: 12px;
  font-weight: 600;
  color: #6b6b6b;
  text-align: center;
  line-height: 1.2;
}
.scent-picker a.scent.selected-scent + .scent-caption {
  color: #4A9F45;
  font-weight: 800;
}

/* ==================================================================
   9. Cart snapshot (the plugin's slide-out after Add to Cart) —
      SomaLeaf restyle. Markup is generated by app.cartSnapshot.js.
      CONSTRAINTS from the plugin source, do not change:
      - panel width MUST stay 320px: the slide is JS-hardcoded
        (transition x:-320), a different width breaks the animation;
      - class hooks (.js-*) drive behavior — visual classes only here;
      - the row remove interaction slides .remove-options over the row
        (fixed 145px offsets in base CSS) — heights made flexible below.
   ================================================================== */

/* Full-height drawer instead of the odd 131px-from-top box */
body .cart-snapshot {
  top: 0;
  bottom: 0;
  max-height: 100%;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
  display: flex;         /* header / items / footer stack */
  flex-direction: column;
  font-family: inherit;
  color: #1C1C1C;
}
body.fix-nav .cart-snapshot {
  top: 0; /* base CSS moves it to 96px under fixed navs — keep full height */
}
/* JS sets display:block inline when opening — restore the column layout */
body.cart-snapshot-active .cart-snapshot {
  display: flex !important;
}

/* Header */
.cart-snapshot .cart-snapshot-header {
  flex: 0 0 auto;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #EDEDED;
}
.cart-snapshot .cart-snapshot-header h3 {
  text-align: left;
  padding-bottom: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1C1C1C;
}
.cart-snapshot .cart-snapshot-header .close {
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #6b6b6b;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.cart-snapshot .cart-snapshot-header .close:hover {
  background: #F2F2F2;
  color: #1C1C1C;
}

/* Items area scrolls on its own; footer stays visible */
.cart-snapshot .cart-snapshot-items {
  flex: 1 1 auto;
  overflow-y: auto;
}
.cart-snapshot .cart-snapshot-items p {
  margin: 24px 0;
  color: #6b6b6b;
}

/* Column header row -> small uppercase labels */
.cart-snapshot .cart-snapshot-items ul {
  margin-bottom: 0;
}
.cart-snapshot .cart-snapshot-items ul li.columns {
  padding: 12px 20px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9a9a9a;
  cursor: default;
}

/* Item rows */
.cart-snapshot .cart-snapshot-items ul li.item {
  padding: 12px 20px 12px 24px; /* extra left room for the remove X */
  border-bottom: 1px solid #F2F2F2;
}
.cart-snapshot .cart-snapshot-items ul li.item .item-info .item-name {
  font-weight: 500;
  color: #1C1C1C;
  line-height: 1.35;
}
.cart-snapshot .cart-snapshot-items ul li.item .item-info .item-qty,
.cart-snapshot .cart-snapshot-items ul li.item .item-info .item-price {
  color: #4d545a;
}
.cart-snapshot .cart-snapshot-items ul li.item .item-info .item-price {
  font-weight: 700;
}

/* Remove X: readable, red on hover */
.cart-snapshot .cart-snapshot-items ul li.item .remove {
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #b0b0b0;
}
.cart-snapshot .cart-snapshot-items ul li.item .remove:hover {
  color: #E53935;
}

/* Remove/Cancel overlay: brand colors, height follows the row
   (base CSS hardcodes 42px, which clips taller rows) */
.cart-snapshot .cart-snapshot-items ul li.item .remove-options {
  height: 100%;
}
.cart-snapshot .cart-snapshot-items ul li.item .remove-options-remove,
.cart-snapshot .cart-snapshot-items ul li.item .remove-options-cancel {
  height: 100%;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.cart-snapshot .cart-snapshot-items ul li.item .remove-options-remove {
  background: #E53935;
  color: #fff;
}
.cart-snapshot .cart-snapshot-items ul li.item .remove-options-cancel {
  background: #F2F2F2;
  color: #4d545a;
}

/* Total row */
.cart-snapshot .cart-snapshot-items ul li.total {
  padding: 14px 20px;
  border-top: 2px solid #EDEDED;
  cursor: default;
}
.cart-snapshot .cart-snapshot-items ul li.total .item-total {
  font-size: 15px;
  font-weight: 600;
  color: #1C1C1C;
}
.cart-snapshot .cart-snapshot-items ul li.total .item-price {
  font-size: 17px;
  font-weight: 600;
  color: #2F7A27;
}

/* Footer buttons: Checkout = brand green, Back = quiet ghost */
.cart-snapshot .cart-snapshot-options {
  flex: 0 0 auto;
  padding: 14px 16px;
  border-top: 1px solid #EDEDED;
  background: #fff;
}
.cart-snapshot .cart-snapshot-options .cart-snapshot-button {
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  padding: 11px 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}
.cart-snapshot .cart-snapshot-options .cart-snapshot-button-continue {
  background: #fff;
  border: 1px solid #D8D8D8;
  color: #4d545a;
}
.cart-snapshot .cart-snapshot-options .cart-snapshot-button-continue:hover {
  background: #F7F7F7;
}
.cart-snapshot .cart-snapshot-options .cart-snapshot-button-checkout {
  background: linear-gradient(180deg, #4A9F45 0%, #3B8639 100%);
  border: 1px solid #3B8639;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-snapshot .cart-snapshot-options .cart-snapshot-button-checkout:hover {
  filter: brightness(1.07);
}

/* Overlay: slightly softer than the plugin's 50% black */
body .dark-overlay {
  background: rgba(20, 30, 20, 0.45);
}

/* 10. Snapshot rows for coupon-discounted / free items (patched by the
       engine from the cart's per-item discount data): original price struck
       through, FREE in brand green. */
.cart-snapshot .cart-snapshot-items ul li.item .item-price .slof-was {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #A9A9A9;
  text-decoration: line-through;
}
.cart-snapshot .cart-snapshot-items ul li.item .item-price .slof-now {
  display: block;
}
.cart-snapshot .cart-snapshot-items ul li.item .item-price .slof-now.slof-free {
  color: #2F7A27;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* 11. Selection must never change GEOMETRY — only color. On mobile the
      cards sit right at text-wrap thresholds (especially with the Sale
      chip in the price column), so the two width-changing selected styles
      made labels re-wrap and the whole card jump on tap:
      (a) the radio grew 16px -> 20px on selection;
      (b) the pack number gained font-weight 700 on selection. */
.bottle-option:not(.selected) .bottle-option-radio {
  width: 20px;   /* constant size in both states; color still signals */
  height: 20px;
}
.bottle-number-highlight {
  font-weight: 700; /* bold in ALL states — gray vs green signals selection */
}

/* breathing room for the price column on phones during a sale */
@media (max-width: 575px) {
  .bottle-sale-flag {
    font-size: 10px;
    padding: 1px 6px;
    margin-left: 4px;
  }
  .bottle-compare-price {
    font-size: 13px;
  }
}
