/* Keep original theme CSS. Hero crop/layout only — do not override AOS or transitions. */

/*
  Measured from side-by-side screenshot vs lumineuxhealth.com:
  white gap above announcement = 14 shot px; announcement band = 19 shot px;
  CSS announcement height ≈ 0.625em*2 + 1.2*1em @ 16px = 39.2px
  => margin-top = 14/19 * 39.2 ≈ 28.9px → 29px
*/
html {
    background: #fff;
}

/* Match live body font stack exactly (some scraped pages had Raleway fallback) */
html.js,
html.no-js,
body-font,
html,
body {
    font-family: gotham, sans-serif;
}

#shopify-section-announcement_bar {
    margin-top: 29px;
}

@media (min-width: 1051px) {
    #shopify-section-template--15167940952121__16597151815b55645d hero-carousel.hero-carousel {
        min-height: 0;
        padding-top: 38.46%;
    }

    #shopify-section-template--15167940952121__16597151815b55645d hero-carousel .bg-img {
        min-height: 0;
        background-size: 100% 100%;
        background-position: center center;
        background-repeat: no-repeat;
    }

    #shopify-section-template--15167940952121__16597151815b55645d hero-carousel .bg-img.medium-down--hide {
        background-image: url("/cdn/shop/files/lumineux-hero-desktop-full.jpg");
    }
}

@media (max-width: 1050px) {
    #shopify-section-template--15167940952121__16597151815b55645d hero-carousel.hero-carousel {
        min-height: 0;
        padding-top: 180%;
    }

    #shopify-section-template--15167940952121__16597151815b55645d hero-carousel .bg-img {
        min-height: 0;
        background-size: cover;
        background-position: center center;
    }

    #shopify-section-template--15167940952121__16597151815b55645d hero-carousel .bg-img.medium-down--show {
        background-image: url("/cdn/shop/files/lumineux-hero-mobile.jpg");
    }
}

@media (min-width: 1051px) {
    .mega-menu icon-by-handle {
        display: inline-flex;
        width: 1.15em;
        height: 1.15em;
        margin-right: 0.57em;
        flex: 0 0 auto;
    }

    .mega-menu icon-by-handle svg {
        width: 1.15em;
        height: 1.15em;
        display: block;
    }
}

product-buttons .btn.add {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* If quantity select is hidden (e.g. after history back), keep ATC fully rounded */
.main-product-info .input-and-btn:has(.quantity-input[style*="display: none"]) product-buttons .btn,
.main-product-info .input-and-btn:has(.quantity-input[style*="display:none"]) product-buttons .btn,
.addtocarto .input-and-btn:has(.quantity-input[style*="display: none"]) product-buttons .btn,
.addtocarto .input-and-btn:has(.quantity-input[style*="display:none"]) product-buttons .btn {
    border-radius: 50px;
}

/*
  Live match: copyright → page bottom = 46px
  (18px inside #footer .bottom + 28px after <footer>).
*/
footer[role="contentinfo"] {
    margin-bottom: 28px;
}

#footer .top .links p.item:nth-of-type(2) {
    -webkit-column-break-before: always;
    break-before: column;
}

#footer .top .links p.item {
    -webkit-column-break-after: avoid;
    break-after: avoid;
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
}

.collection-grid .product-item {
    text-align: left;
}

.collection-grid .product-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.75em;
}

.collection-grid .product-item .title {
    font-weight: 700;
    margin-bottom: 0.35em;
}

#side-cart .cart-items .item quantity-input.quantity-box,
#cart .item quantity-input.quantity-box {
    display: flex;
    align-items: center;
}

#side-cart .cart-items .item {
    position: relative;
    align-items: flex-start;
}

#side-cart .cart-items .item .text-wrapper {
    flex: 1;
    padding-top: 0.15em;
    padding-right: 1.75em;
}

#side-cart .cart-items .item .remove {
    position: absolute;
    top: 0.35em;
    right: 0.25em;
    width: 1.35em;
    height: 1.35em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}

#side-cart .cart-items .item .remove svg {
    margin-right: 0;
    font-size: 0.75em;
}

#side-cart featured-products {
    padding: 0;
    background: transparent;
}

#side-cart featured-products h2 {
    max-width: none;
    font-size: 22px;
}

#side-cart featured-products .cart-top-keen button {
    border: 2px solid #052f58;
    border-radius: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#side-cart featured-products .cart-top-keen button svg {
    width: 1.1em;
    height: 1.1em;
    display: block;
}

#side-cart .products-slider .product-card.atc .title,
#side-cart .products-slider .product-card.atc .product-card-url {
    display: none;
}

/* Keep empty Combine It With visible to match live (live also renders empty container). */

/*
  Live injects an Amazon Buy-with-Prime iframe (display:inline, height:0) after #amzn-buy-now.
  That inline iframe still creates a ~1.7em line-box (~27.2px) between ATC and store buttons.
  Offline never loads BWP, so reserve the same gap when the mount point stays empty.
*/
#amzn-buy-now:empty {
    margin-bottom: 1.7em;
}

/*
  Shopify CDN serves ?width=100 thumbs at 100×100. Local files ignore width= and
  non-square assets were painting different heights (e.g. 100×89.6) so cards mismatched.
  Lock every Combine It With thumb to live measured size.
*/
.upsell-container {
    align-items: stretch;
}
.cross-sell .image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    box-sizing: border-box;
}
.cross-sell .image-wrap img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    object-fit: contain;
    object-position: center;
}

recommended-products {
    text-align: left;
}

recommended-products .bottom-keen {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5em;
    width: 100%;
}

recommended-products .title-target {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

recommended-products .title-target h2 {
    text-align: left;
    margin: 0 !important;
    line-height: 1.08;
    max-width: none;
}

recommended-products .bottom-keen .keen-arrows {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
}

recommended-products .bottom-keen .keen-arrow {
    position: static;
    width: 6.25em;
    height: 2.5em;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

recommended-products .bottom-keen .keen-arrow img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

recommended-products .bottom-keen .keen-arrow.prev {
    transform: rotate(180deg);
    margin-right: 1em;
}

@media (max-width: 1050px) {
    recommended-products .bottom-keen {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8em;
    }

    recommended-products .bottom-keen .keen-arrows {
        margin-left: 0;
    }

    recommended-products .bottom-keen .keen-arrow {
        width: 4.6875em;
        height: 2.6875em;
    }

    recommended-products .bottom-keen .keen-arrow.prev {
        margin-right: 0.4em;
    }
}

recommended-products .info,
recommended-products .form-wrapper {
    display: none;
}

recommended-products .product-card.atc .metafield-badge {
    color: #1c446a !important;
    background: #fff;
    border: none;
}

/* Okendo reviews — original live layout */
.okeReviews-reviewsAggregate-mod-itm--medAgg {
    display: none !important;
}

.okeReviews .okeReviews-reviewsWidget-header-controls-writeReview,
.okeReviews .okeReviews-reviewsWidget-header-controls-writeReview.is-okeReviews-hidden {
    display: inline-block !important;
    visibility: visible !important;
    background: #052f58 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 2px;
    padding: 0.75em 1.25em;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
}

.okeReviews .okeReviews-reviewsWidget-header-poweredBy {
    display: none;
}

.okeReviews .okeReviews-flag {
    display: inline-block;
    width: 1.1em;
    height: 0.8em;
    margin-left: 0.35em;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.okeReviews .okeReviews-flag--us {
    background-image: url("/icons/us.svg");
}

.okeReviews-review .okeReviews-mediaStrip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 0.75em;
}

.okeReviews-review .okeReviews-mediaStrip-item-media,
.okeReviews-review .okeReviews-mediaStrip img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.okeReviews-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.okeReviews-carousel {
    padding: 0 36px;
}

.okeReviews .flickity-prev-next-button {
    background: transparent;
    color: #a0a8b4;
    width: 28px;
    height: 28px;
    box-shadow: none;
}

.okeReviews .flickity-prev-next-button:hover {
    background: transparent;
    color: #052f58;
}

.okeReviews .flickity-prev-next-button .flickity-button-icon {
    fill: currentColor;
}

.okeReviews .flickity-prev-next-button.next {
    right: 0;
}

.okeReviews .flickity-prev-next-button.previous {
    left: 0;
}

.okeReviews .okeReviews-reviewsWidget--carousel.is-okeReviews-reviewsWidget-medium .okeReviews-carousel-slide {
    width: 50%;
}

.okeReviews .okeReviews-reviewsWidget--carousel.is-okeReviews-reviewsWidget-large .okeReviews-carousel-slide {
    width: 33.3333%;
}

/* Keep review bubbles the same height when the window grows, so the short first card does not sit above the others. */
.featured-reviews .keen-slider-slide {
    display: flex;
    align-items: stretch;
}
.featured-reviews .featured-review-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
}
.featured-reviews .featured-review-card > .featured-review {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.featured-reviews .featured-review-card > .featured-review blockquote.review {
    flex: 1 1 auto;
}

/* Cart drawer and cart page only: keep the checkout bar, heading, and recommendation buttons inside the screen. */
#side-cart.open {
    display: flex !important;
    flex-direction: column;
}
#side-cart .content {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}
#side-cart .wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}
#side-cart .head,
#side-cart .foot {
    flex-shrink: 0;
}
#side-cart .foot-top {
    max-width: 100%;
}
#side-cart .foot .buttons-wrapper .flex {
    gap: 0.6em;
}
#side-cart .foot .see-cart {
    margin-right: 0;
}
#side-cart .foot .buttons-wrapper .btn.one-half {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
}
#side-cart .cart-items .item .title,
#cart .item .name a {
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    #cart .products-slider .cart-top-keen,
    #side-cart featured-products .cart-top-keen {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75em;
    }
    #cart .products-slider .cart-top-keen h2,
    #side-cart featured-products .cart-top-keen h2 {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        margin: 0 !important;
        line-height: 1.25;
    }
    #side-cart featured-products .cart-top-keen h2 {
        font-size: 1.05em;
    }
    #cart .products-slider .cart-top-keen button.keen-arrow,
    #side-cart featured-products .cart-top-keen button.keen-arrow {
        width: 2.4em !important;
        height: 2.4em !important;
        flex: 0 0 auto;
    }
    #cart .summary-line {
        gap: 0.75em;
    }
    #cart .summary-line .label,
    #cart .summary-line .number {
        min-width: 0;
    }
    #cart .label.calculated {
        max-width: none;
        text-align: right;
    }
}

#cart .lx-also-grid,
#side-cart .lx-also-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
#cart .lx-also-grid .keen-slider-slide,
#side-cart .lx-also-grid .keen-slider-slide {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    transform: none !important;
}
#side-cart .lx-also-static .cart-top-keen {
    margin-top: 1.625em;
    margin-bottom: 1em;
}
#side-cart .lx-also-static .cart-top-keen h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-weight: var(--side-cart-title-weight, 500);
    color: var(--side-cart-title-color, #052f58);
    font-family: var(--gotham-narrow), sans-serif !important;
    font-size: 22px;
    line-height: 1.15;
    text-transform: var(--side-cart-title-transform, none);
}
#cart .lx-also-static .cart-top-keen {
    margin: 1.5em 0 1em;
}
#cart .lx-also-static .cart-top-keen h2 {
    margin: 0;
    font-size: 1.5em;
    color: #052f58;
}
#cart featured-products.lx-also-arrows .keen-arrow.disabled,
#side-cart featured-products.lx-also-arrows .keen-arrow.disabled {
    display: flex !important;
}
.lx-also-static .keen-arrows {
    display: none !important;
}
.lx-also-static .keen-arrow {
    position: static;
    transform: none;
    width: 4em;
    height: 2em;
    border: 2px solid #052f58;
    border-radius: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.lx-also-static .keen-arrow.prev {
    transform: rotate(180deg);
}
.lx-also-static .keen-arrow svg {
    width: 1.1em;
    height: 1.1em;
    display: block;
}
@media (max-width: 1050px) {
    .top-utils:has(.cart-count:not(:empty)) {
        right: 0.5rem;
    }
    .top-utils:has(.cart-count:not(:empty)) .item {
        padding-left: 0.3em;
        padding-right: 0.3em;
        margin-right: 0.25em;
    }
    .top-utils .cart-count:not(:empty) {
        margin-left: 0.15em;
        white-space: nowrap;
    }
}
@media (max-width: 600px) {
    #cart .lx-also-grid,
    #side-cart .lx-also-grid {
        grid-template-columns: 1fr;
    }
    #cart .lx-also-grid .keen-slider-slide:nth-child(n + 2),
    #side-cart .lx-also-grid .keen-slider-slide:nth-child(n + 2) {
        display: none;
    }
    #cart .products-slider.lx-also-static .cart-top-keen,
    #side-cart .products-slider.lx-also-static .cart-top-keen {
        flex-direction: column;
        align-items: center;
        gap: 0.65em;
    }
    #cart .lx-also-static .keen-arrows,
    #side-cart .lx-also-static .keen-arrows {
        display: flex !important;
        justify-content: center;
        gap: 0.55em;
    }
}

/* Contain rows that were wider than the screen. Desktop layout stays the same when the content already fits. */
@media (max-width: 1050px) {
    .collection-filters,
    .collection-filters .js-collection-filters,
    .collection-filters .filter-buttons,
    .collection-filters .filter-sort-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .collection-filters .filter-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

article.post {
    max-width: 100%;
    overflow-wrap: anywhere;
}
article.post img,
article.post iframe,
article.post video {
    max-width: 100%;
    height: auto;
}
@media (max-width: 800px) {
    article.post table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.transformation,
.transformation .container,
.transformation-hero,
.transformation-scroll,
.hero-grid,
.hero-visual,
.hero-product-wrap,
.hero-retailer-bar,
.hero-retailer-logos-image {
    min-width: 0;
    max-width: 100%;
}
.transformation-scroll {
    width: 100%;
    overflow-x: auto;
}
.hero-thumbnails {
    flex-wrap: wrap;
    max-width: 100%;
}
.hero-product-img {
    max-width: 100%;
}
@media (max-width: 480px) {
    .hero-retailer-logos-image {
        margin-left: 0;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

press-logos,
press-logos .keen,
press-logos .keen-slider {
    max-width: 100%;
    min-width: 0;
}

consent-bar {
    box-sizing: border-box;
    max-width: 100%;
}

.main-product-info product-selling-plan .sub-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.main-product-info product-selling-plan .sub-option > label {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}
.main-product-info product-selling-plan .sub-option [data-plans] {
    flex: 1 0 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .myth-toggle.small--flex,
    .myth-toggle .container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .myth-toggle .myth-content {
        max-width: 100%;
    }
}
