/* Additions for the Labness catalogue and multilingual controls. Beauty CSS is retained. */
.ln-values{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;border-block:1px solid var(--bw-gray-200);padding:26px 0;margin:40px 0}.ln-values span{display:flex;align-items:center;gap:12px;font-size:13px}.ln-values .bw-icon{flex-shrink:0;color:var(--bb-gold);width:28px;height:28px}.ln-catalog .bw-about-panel__media{background:var(--bb-plum);display:flex;justify-content:center;align-items:center;padding:35px}.ln-catalog .bw-about-panel__media img{width:auto;max-width:100%;height:440px;max-height:100%;object-fit:contain;box-shadow:0 14px 35px #0003}.ln-currency{font-size:11px}.ln-currency .wcml-dropdown{width:68px}.ln-currency .wcml-dropdown a{padding:6px 18px 6px 8px}.ln-currency .wcml-dropdown li{background:transparent;border-color:var(--bw-gray-200)}.ln-routine-products{margin-block:56px}.ln-routine-products ul.products{max-width:800px}.bw-header-actions{gap:14px}.bw-footer__contact a{overflow-wrap:anywhere}
@media(max-width:767px){.ln-values{grid-template-columns:1fr;gap:16px}.ln-catalog .bw-about-panel__media img{height:330px}.ln-currency{display:none}.bw-header-actions{gap:8px}}

@media(max-width:767px){.ln-currency--mobile{display:block}}
/* Adapt legal/contact accents inherited from Labs to the retained Beauty palette. */
.bw-legal-hero,.bw-contact-hero{background:radial-gradient(circle at 80% 75%,rgb(212 177 127 / .15),transparent 35%),radial-gradient(circle at 90% 90%,rgb(86 80 124 / .08),transparent 40%),var(--bw-white)}
.bw-legal-hero::after{content:"LABNESS";font-size:clamp(4rem,10vw,9rem);letter-spacing:.01em}
.bw-legal-toc__title{color:var(--bb-gold)}
.bw-legal-section>h2>span{color:#fff;background:var(--bb-violet)}
.bw-contact-info-card--dark::after{content:"LABNESS";font-size:3.4rem;bottom:-8px;right:0}

/* Long translated legal titles must fit narrow screens. */
.bw-legal-hero h1{overflow-wrap:anywhere;hyphens:auto}

/* Labness 1.0.2: isolated ritual layouts (avoid 4-column WooCommerce defaults). */
.bw-page:has(.ln-routine-products) .bw-entry-content {max-width:none;width:100%}
.ln-routine-products {max-width:980px;margin:clamp(45px,6vw,88px) auto;clear:both}
.ln-routine-products > h2 {font-size:clamp(2rem,4vw,3.75rem);margin:0 0 30px;line-height:1.1}
.ln-routine-products.woocommerce ul.products,
.woocommerce .ln-routine-products ul.products,
.bw-entry-content .ln-routine-products ul.products {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none!important;width:100%!important;gap:clamp(16px,2.8vw,30px)!important;margin:0!important;padding:0!important;list-style:none!important}
.ln-routine-products.woocommerce ul.products li.product,
.woocommerce .ln-routine-products ul.products li.product,
.bw-entry-content .ln-routine-products ul.products li.product {width:100%!important;max-width:none!important;min-width:0!important;float:none!important;margin:0!important;clear:none!important}
.ln-routine-products .bw-product-card__body{min-width:0;padding:clamp(14px,2vw,24px)}
.ln-routine-products .bw-product-card__title{overflow-wrap:anywhere;font-size:clamp(1rem,1.7vw,1.5rem)!important}
.ln-routine-products .bw-product-card__bottom{grid-template-columns:minmax(0,1fr);align-items:start;gap:14px}
.ln-routine-products .bw-product-card__cta{width:100%;text-align:center;white-space:normal}
.bw-goals-panel--labness .bw-goals-columns{grid-template-columns:repeat(4,minmax(0,1fr))}
.bb-ritual-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1120px){.bw-goals-panel--labness .bw-goals-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.bb-ritual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.ln-routine-products{margin-block:44px}.ln-routine-products.woocommerce ul.products,.woocommerce .ln-routine-products ul.products,.bw-entry-content .ln-routine-products ul.products{gap:12px!important}.ln-routine-products .bw-product-card__title{font-size:clamp(.94rem,3.5vw,1.12rem)!important}.ln-routine-products .bw-product-card__cta{font-size:.72rem;padding:9px 7px}.bw-goals-panel--labness .bw-goals-columns,.bb-ritual-grid{grid-template-columns:1fr}}
@media(max-width:420px){.ln-routine-products.woocommerce ul.products,.woocommerce .ln-routine-products ul.products,.bw-entry-content .ln-routine-products ul.products{grid-template-columns:1fr!important}}

/* Labness 1.0.3: modest desktop typography, preserving mobile sizing. */
@media (min-width:1025px) {
 .bb-hero h1 {font-size:clamp(3.5rem,5.2vw,5.7rem);line-height:1.025;letter-spacing:-.045em;max-width:980px}
 .bw-section-heading h2 {font-size:clamp(2.15rem,3.05vw,3.35rem);line-height:1.12}
 .bw-featured-panel h2 {font-size:clamp(2.1rem,2.85vw,3.4rem);line-height:1.12}
 .bw-about-panel h2 {font-size:clamp(2.1rem,2.8vw,3.2rem);line-height:1.11}
 .bw-newsletter-panel h2 {font-size:clamp(2.05rem,3vw,3.35rem);line-height:1.15}
 .bw-page-header h1,.bw-shop-hero h1,.bw-contact-hero h1 {font-size:clamp(2.55rem,3.65vw,4.1rem);line-height:1.08}
 .bb-editorial-lead h2 {font-size:clamp(2.3rem,3.7vw,4.05rem);line-height:1.1}
 .bw-content-hero h1,.bw-article__header h1 {font-size:clamp(2.5rem,3.7vw,4.1rem);line-height:1.06}
 .woocommerce div.product .product_title {font-size:clamp(2.05rem,2.6vw,3.1rem);line-height:1.1}
 .ln-routine-products > h2 {font-size:clamp(2.15rem,3vw,3.15rem);line-height:1.13}
 .bw-legal-hero h1 {font-size:clamp(2.5rem,3.9vw,4.15rem);line-height:1.1}
 .bw-prose > h2 {font-size:clamp(1.65rem,2.3vw,2.55rem);line-height:1.19}
}

/* Keep translated hero accent readable with the catalog's longer phrase. */
@media (min-width:1025px) { .bb-hero h1 .bb-script {font-size:1.06em;margin-left:0} }
@media (max-width:640px) { .bb-hero h1 .bb-script {font-size:.94em;margin-left:0} }


/* Labness 1.0.4 — clean Stripe checkout forms.
 * Keep the outer selected payment method card and actual input borders.
 * Stripe-hosted iframe interiors cannot be styled by theme CSS. */
body.woocommerce-checkout #payment .payment_box fieldset.wc-payment-form,
body.woocommerce-checkout #payment .payment_box fieldset.wc-upe-form,
body.woocommerce-checkout #payment .payment_box fieldset[id^="wc-stripe"] {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-inline-size: 0;
  margin: 0 !important;
  padding: 0 !important;
}
body.woocommerce-checkout #payment .payment_box .wc-stripe-upe-element,
body.woocommerce-checkout #payment .payment_box .wc-stripe-elements-field {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* No extra frame behind BLIK field; preserve the visible code input. */
body.woocommerce-checkout #payment .payment_box [id^="wc-stripe_blik"] .wc-stripe-upe-element {
  padding: 0;
}
body.woocommerce-checkout #payment .payment_box input[name="wc-stripe-blik-code"] {
  width: 100%;
  box-sizing: border-box;
}

/* Readable white text over the purple hover state on dark Labness CTAs.
 * Gold/light buttons and external Apple Pay / Google Pay widgets are unchanged. */
@media (hover: hover) {
  body .bw-button--dark:not(.disabled):hover,
  body .woocommerce ul.products li.product a.button.bw-product-card__cta:not(.disabled):hover,
  body .single-product div.product button.single_add_to_cart_button.button:not(:disabled):not(.disabled):hover,
  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
  body.woocommerce-cart .bw-cart-summary__checkout a.button.alt:hover,
  body.woocommerce-checkout #payment button#place_order:not(:disabled):hover,
  body.woocommerce-checkout .woocommerce #payment #place_order:not(:disabled):hover {
    background: var(--bb-violet, #56507c) !important;
    background-color: var(--bb-violet, #56507c) !important;
    color: #fff !important;
    border-color: var(--bb-violet, #56507c) !important;
  }
  body .bw-button--dark:hover *,
  body .woocommerce ul.products li.product a.button.bw-product-card__cta:hover *,
  body .single-product div.product button.single_add_to_cart_button.button:hover *,
  body.woocommerce-checkout #payment button#place_order:hover * {
    color: inherit !important;
  }
}

/* Labness 1.0.7 — product cards on phones: title, then price, then CTA.
 * The product title remains in .bw-product-card__body above this footer.
 * Explicitly override the later mobile flex-row rules from responsive.css;
 * leave the desktop/tabled layout untouched. */
@media (max-width: 767px) {
  .woocommerce ul.products li.product.bw-product-card .bw-product-card__bottom,
  .woocommerce-page ul.products li.product.bw-product-card .bw-product-card__bottom,
  li.product.bw-product-card .bw-product-card__bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-width: 0;
    width: 100%;
    padding-top: 12px;
  }

  li.product.bw-product-card .bw-product-card__price {
    display: block;
    order: 0;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    text-align: left;
    overflow-wrap: anywhere;
  }

  li.product.bw-product-card .bw-product-card__bottom > .bw-product-card__cta,
  .woocommerce ul.products li.product.bw-product-card .button.bw-product-card__cta,
  .woocommerce-page ul.products li.product.bw-product-card .button.bw-product-card__cta {
    box-sizing: border-box;
    display: inline-flex;
    order: 1;
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 40px;
    margin: 0 !important;
    padding: 10px 8px;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
