/**
 * Frontend styles
 *
 * @link       https://douple.net
 * @since      1.1.4
 * @package    Douple
 * @author     Douple <support@douple.net>
 */

@import "material-icons.css";

.shopspot {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    top: 0px;
    left: 0px;
    padding: 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
/* STANDALONE lookbooks never upscale past the photo's natural size (a small
   or portrait upload stretched to a wide content column goes blurry):
   positionLookbooks() caps the root's max-width at the photo's natural
   width — the ROOT, so the %-positioned markers keep matching the photo —
   and these margins centre the capped root in the column. Gallery slides
   and Product List wrappers size the photo themselves and are skipped by
   the JS; auto margins are a no-op while the root still fills its column. */
.shopspot:not(.lookbook-gallery .shopspot):not(.lookbook-with-list .shopspot) {
    margin-left: auto;
    margin-right: auto;
}
.lookbook-photo {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}
.lookbook-marker {
    position: absolute;
    text-align: center;
    z-index: 10;
}
/* Raise the marker being interacted with above its siblings so its
   box is never covered by a marker that comes later in the DOM. */
.lookbook-marker:hover,
.lookbook-marker:focus-within,
.lookbook-marker.is-active {
    z-index: 200;
}

.lookbook-grab {
    position: relative;
    cursor: hand;
    cursor: pointer;
    font-size: var(--lb-marker-size, 30px);
    color: #000;
    z-index: 100;
    outline: none;
    border: none;
    opacity: 1;
    transition: transform 0.25s ease, opacity 0.25s ease;
    
    user-select: none; /* supported by Chrome and Opera */
   -webkit-user-select: none; /* Safari */
   -khtml-user-select: none; /* Konqueror HTML */
   -moz-user-select: none; /* Firefox */
   -ms-user-select: none; /* Internet Explorer/Edge */
}
.lookbook-grab:hover {
    transform: scale(.8);
}
.lookbook-marker.is-active .lookbook-grab {
    opacity: 0.7;
}

/* 
 * Layout
*/
.lookbook-box {
	height: auto;
    padding: 5px;
	position: absolute;
	top: calc(6% - 15px);
	left: -15px;
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.01s ease 0.4s;
}
.is-active .lookbook-box {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}
.lookbook-box::before {
	content: "";
	width: 100%;
	height: 0;
	background: #fff;
	position: absolute;
	top: 0px;
	right: 0px;
	transition: height 0.4s cubic-bezier(0.4, 0.4, 0.000, 1.0) 0.1s;
	z-index: 0;
	-webkit-box-shadow: 0px 0 30px 0 rgba(0,0,0,0.10);
	-moz-box-shadow: 0px 0 30px 0 rgba(0,0,0,0.10);
	box-shadow: 0px 0 30px 0 rgba(0,0,0,0.10);
	/* "Box Corner" setting (--lb-radius, set on .lookbook-markers). Every
	   layout's box follows it (Tag included, see layout 3 below) except the
	   Instagram triangle pointer (::after), whose shape isn't meant to. */
	border-radius: var(--lb-radius, 0px);
}
.dark .lookbook-box::before {
    background: rgba(0,0,0,.9);
    
}
.yellow .lookbook-box::before {
    background: #ffb818;
}
.is-active .lookbook-box::before {
	height: 100%;
}
.lookbook-box .lookbook-close {
    position: absolute;
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 12px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    border-color: transparent;
    outline: none;
    background: rgba(0,0,0,0.08);
/*    padding: 5px;*/
    transform: translateY(-50%);
    cursor: hand;
    cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease;
    transition-delay: 0;
    z-index: 99;
}
.dark .lookbook-box .lookbook-close {
    background: rgba(255,255,255,0.12) !important;
    color: #FFF;
}
.yellow .lookbook-box .lookbook-close {
    background: rgba(0,0,0,0.08);
    color: #000;
}
.lookbook-box .lookbook-close:hover {
    background: rgba(0,0,0,0.2);
}
.dark .lookbook-box .lookbook-close:hover {
    background: rgba(255,255,255,0.25) !important;
}
.yellow .lookbook-box .lookbook-close:hover {
    background: rgba(0,0,0,0.15);
}
.is-active .lookbook-box .lookbook-close {
	opacity: 1;
	visibility: visible;
	transition-delay: 0.3s;
}
.lookbook-box .lookbook-product {
    text-align: left;
	display: block;
	overflow: hidden;
	opacity: 0;
    outline:none;
	visibility: hidden;
    text-decoration: none;
	transition: all 0.25s ease;
	transform: translateY(-10px);
    position: relative;
    z-index: 1;
}

.is-active .lookbook-box .lookbook-product {
    opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-duration: 0.3s;
	transition-delay: 0.2s;
}
.lookbook-product .product-name {
    display: block;
    transition: opacity 0.25s ease;
}
.lookbook-product:hover .product-name {
    opacity: 0.8;
}
.lookbook-product .product-name .product-image {
    line-height: 0;
    overflow: hidden;
    border-radius: var(--lb-radius, 0px);
}
.lookbook-product .product-name .product-image img {
    width: 100%;
}
.lookbook-product .product-name .product-info {
    text-align: left;
    line-height: 0;
    overflow: hidden;
}
.lookbook-product .product-name .product-info h3 {
    font-family: inherit;
    color: #000;
    margin: 0;
}
.dark .lookbook-product .product-name .product-info h3 {
    color: #FFF;
}
.yellow .lookbook-product .product-name .product-info h3 {
    color: #000;
}
.lookbook-product .product-price {
    font-family: inherit;
    color: #BBB;
}
.lookbook-product .price, .lookbook-product .amount {
    font-family: inherit;
    color: #777;
}
.lookbook-product ins {
    text-decoration: none;
}
.lookbook-product del {
    margin-right: 2px;
    color: #BBB;
}
.lookbook-product del .price, .lookbook-product del .amount {
    color: #BBB;
}
.dark .lookbook-product .price, .dark .lookbook-product .amount {
    color: #FFF;
    opacity: .7;
}
.yellow .lookbook-product .price, .yellow .lookbook-product .amount {
    color: #000;
    opacity: .5;
}

/* 
 * Layout 0
*/
.lookbook-layout-0 .lookbook-box {
	width: 280px;
}
.lookbook-layout-0 .lookbook-box::before {
    transition: height 0.3s cubic-bezier(0.4, 0.4, 0.000, 1.0) 0.1s;
}
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box .lookbook-close {
	top: 50%;
	right: 5px;
    background: rgba(0,0,0,0.1);
}
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box .lookbook-close {
    top: 18px;
}
.lookbook-layout-0 .lookbook-box .lookbook-product {
    width: calc(100% - 30px);
}
.lookbook-layout-0 .is-active .lookbook-box .lookbook-product {
	transition-duration: 0.3s;
	transition-delay: 0.2s;
}
.lookbook-layout-0 .lookbook-product .product-name .product-image {
    max-width: 60px;
/*    margin-right: 5px;*/
    display: inline-block;
    vertical-align: middle;
}
.lookbook-layout-0 .lookbook-product .product-name .product-info {
    margin-left: 5px;
    width: calc(100% - 100px);
    display: inline-block;
    vertical-align: middle;
}
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-product .product-name .product-info h3 {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-product .price,
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-product .amount {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-product del .price,
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-product del .amount {
    font-size: 10px;
    line-height: 14px;
}

/* 
 * Layout 1
*/
.lookbook-layout-1 .lookbook-box {
	width: 180px;
}
.lookbook-layout-1 .lookbook-box .lookbook-close {
	top: 18px;
	right: 6px;
    height: 24px;
    width: 24px;
    line-height: 24px;
}
.lookbook-layout-1 .lookbook-box .lookbook-close {
    background: rgba(0,0,0,0.4);
    color: #FFF;
}
.lookbook-layout-1 .lookbook-box .lookbook-close:hover {
    background: rgba(0,0,0,0.6);
}
.lookbook-layout-1 .lookbook-box .lookbook-product {
    width: 100%;
}
.lookbook-layout-1 .lookbook-product .product-name .product-image {
    display: block;
    max-height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    vertical-align: middle;
}
.lookbook-layout-1 .lookbook-product .product-name .product-image img {
    width: 100%;
}
.lookbook-layout-1 .lookbook-product .product-name .product-info {
    padding: 10px 5px 5px;
    text-align: center;
}
.lookbook-layout-1 .lookbook-product .product-name .product-info h3 {
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
}
.lookbook-layout-1 .lookbook-product .price, .lookbook-layout-1 .lookbook-product .amount {
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
}
.lookbook-layout-1 .lookbook-product del .price, .lookbook-layout-1 .lookbook-product del .amount {
    font-size: 10px;
    line-height: 16px;
}

/* 
 * Layout 2
*/
.lookbook-layout-2 .lookbook-box {
	width: 200px;
    padding: 8px 10px;
}
.lookbook-layout-2 .lookbook-box::before {
    /* Corner radius comes from the base .lookbook-box::before rule
       (--lb-radius) — no per-layout override needed here. */
    transition: height 0.3s cubic-bezier(0.4, 0.4, 0.000, 1.0) 0.1s;
}
.lookbook-layout-2 .lookbook-box::after {
    content: '';
    position: absolute;
    display: block;
    height: 18px;
    width: 18px;
    background-color: #FFF;
    top: -8px;
    left: 22px;
    clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
    transform: rotate(135deg);
    -webkit-border-radius: 0 0 0 0.18em;
    -moz-border-radius: 0 0 0 0.18em;
    border-radius: 0 0 0 0.18em;
    opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
    -webkit-box-shadow: 0px 0 30px 0 rgba(0,0,0,0.10);
	-moz-box-shadow: 0px 0 30px 0 rgba(0,0,0,0.10);
	box-shadow: 0px 0 30px 0 rgba(0,0,0,0.10);
    z-index: 1;
}
.lookbook-layout-2 .dark .lookbook-box::after {
    background-color: rgba(0,0,0,.9);
}
.lookbook-layout-2 .yellow .lookbook-box::after {
    background-color: #ffb818;
}
.lookbook-layout-2 .is-active .lookbook-box::after {
	opacity: 1;
	visibility: visible;
    transition-duration: 0.2s;
    transition-delay: 0.3s;
}
.lookbook-layout-2 .lookbook-box.is-top::after {
    top: -8px; 
    transform: rotate(135deg);
}
.lookbook-layout-2 .lookbook-box.is-left::after {
    left: 22px;
}
.lookbook-layout-2 .lookbook-box.is-bottom::after {
    top: auto;
    bottom: -8px; 
    transform: rotate(-45deg);
}
.lookbook-layout-2 .lookbook-box.is-right::after {
    right: 22px;
    left: auto;
}
.lookbook-layout-2 .lookbook-box .lookbook-close {
    width: 20px;
    height: 20px;
    line-height: 20px;
	top: 50%;
	right: 5px;
    background: rgba(0,0,0,0.1);
}
.lookbook-layout-2 .lookbook-box.is-cart .lookbook-close {
    top: 15px;
}
.lookbook-layout-2 .dark .lookbook-box .lookbook-close {
    background: rgba(255,255,255,0.15);
}
.lookbook-layout-2 .yellow .lookbook-box .lookbook-close {
    background: rgba(0,0,0,0.08);
}
.lookbook-layout-2 .lookbook-box .lookbook-close:hover {
    background: rgba(0,0,0,0.2);
}
.lookbook-layout-2 .dark .lookbook-box .lookbook-close:hover {
    background: rgba(255,255,255,0.25);
}
.lookbook-layout-2 .yellow .lookbook-box .lookbook-close:hover {
    background: rgba(0,0,0,0.15);
}
.lookbook-layout-2 .lookbook-box .lookbook-product {
    width: calc(100% - 20px);
}
.lookbook-layout-2 .is-active .lookbook-box .lookbook-product {
	transition-duration: 0.3s;
	transition-delay: 0.2s;
}
.lookbook-layout-2 .lookbook-product .product-name .product-image {
    display: none;
}
.lookbook-layout-2 .lookbook-product .product-name .product-info {
    width: 100%;
    display: block;
    vertical-align: middle;
}
.lookbook-layout-2 .lookbook-product .product-name .product-info h3 {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}
.lookbook-layout-2 .lookbook-product .price, .lookbook-layout-2 .lookbook-product .amount {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}
.lookbook-layout-1 .lookbook-product del .price, .lookbook-layout-1 .lookbook-product del .amount {
    font-size: 10px;
    line-height: 14px;
}

@media only screen and (max-width: 560px) {
    .lookbook-box {
        padding: 2px;
    }
    .lookbook-grab {
        font-size: min(var(--lb-marker-size, 30px), 22px);
    }
    .lookbook-grab-img {
        width: min(var(--lb-marker-size, 30px), 22px);
    }
    .lookbook-box .lookbook-close {
        width: 18px;
        height: 18px;
        line-height: 18px;
    }
    .lookbook-product .product-name .product-info h3 {
        font-size: 10px;
        line-height: 12px;
        font-weight: 600;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        overflow: hidden;
    }
    .lookbook-product .price, .lookbook-product .amount {
        font-size: 10px;
        line-height: 14px;
    }
    
    .lookbook-layout-0 .lookbook-box {
        width: 200px;
    }
    .lookbook-layout-0 .lookbook-box .lookbook-product {
        width: calc(100% - 35px);
    }
    .lookbook-layout-0 .lookbook-product .product-name .product-image {
        max-width: 40px;
    }
    .lookbook-layout-0 .lookbook-product .product-name .product-info {
        width: calc(100% - 47px);
        margin-left: 2px;
    }
    
    .lookbook-layout-1 .lookbook-box {
        width: 140px;
    }
    .lookbook-layout-1 .lookbook-box .lookbook-close {
        top: 13px;
        right: 3px;
        height: 18px;
        width: 18px;
        line-height: 18px;
    }
    .lookbook-layout-1 .lookbook-product .product-name .product-image {
        max-height: 110px;
    }
    .lookbook-layout-1 .lookbook-product .product-name .product-info {
        padding: 8px 5px;
    }
    
    .lookbook-layout-2 .lookbook-box {
        width: 160px;
        padding: 7px 8px;
    }
    .lookbook-layout-2 .lookbook-box .lookbook-close {
        width: 18px;
        height: 18px;
        line-height: 18px;
    }
    .product-info { 
        margin-top: 0 !important; 
        margin-bottom: 0 !important;
    }
}
@media only screen and (max-width: 420px) {
    .lookbook-grab {
        font-size: min(var(--lb-marker-size, 30px), 20px);
    }
    .lookbook-grab-img {
        width: min(var(--lb-marker-size, 30px), 20px);
    }
}
/* Accessibility: visible focus outline for keyboard navigation */
.shopspot .lookbook-grab,
.shopspot .lookbook-close {
    cursor: pointer;
}
.shopspot .lookbook-grab:focus-visible,
.shopspot .lookbook-close:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-radius: 50%;
}

/* Add to cart button on markers (added in 1.2.0) */
.lookbook-box .lookbook-cart {
    display: flex;
    justify-content: center;
    width: auto;
    margin: 8px 0 0;
    padding: 0;
    opacity: 0;
    outline:none;
	visibility: hidden;
    text-decoration: none;
	transition: all 0.25s ease;
	transform: translateY(-10px);
    position: relative;
    z-index: 1;
}
.is-active .lookbook-box .lookbook-cart {
    opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-duration: 0.3s;
	transition-delay: 0.2s;
}
.shopspot .lookbook-cart .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: auto;
    min-width: 0;
    padding: 9px 12px;
    min-height: auto;
    box-sizing: border-box;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
    background: #1d2327;
    color: #fff;
    transition: opacity .25s ease, background .25s ease, color .25s ease;
}
.shopspot .lookbook-cart .button:hover {
    background: #000;
}
.shopspot .lookbook-cart .added {
    opacity: .85;
}
/* Spinner while WooCommerce's AJAX add is in flight (it toggles this class
   itself). Order matters: this rule must come before .lb-cart-added below so
   the success background wins once "loading" and "lb-cart-added" briefly
   overlap during the class swap. */
.shopspot .lookbook-cart .button.loading::before {
    content: "";
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lbCartSpin .6s linear infinite;
}
@keyframes lbCartSpin {
    to { transform: rotate(360deg); }
}
/* Clear "added to cart" confirmation (assets/js/shoppable-lookbook-image-hotspots.js swaps the
   button's own text to match, so it doesn't rely on WooCommerce's separate
   "View cart" link, which is easy to miss on a small marker button). */
.shopspot .lookbook-cart .button.lb-cart-added {
    background: #3858e9;
    opacity: 1;
}
/* WooCommerce appends a "View cart" text link after an AJAX add — hide it so the
   marker box keeps the compact icon-only look (our own text swap above is the
   confirmation instead). */
.shopspot .lookbook-cart .added_to_cart {
    display: none;
}

/* Variation selects (variable products, when Add to Cart is enabled).
   The reveal animation is scoped to the marker box — other surfaces that reuse
   this markup (Pro Product List cards) show the selects immediately. */
.lookbook-variation {
    margin: 8px 0 0;
}
.lookbook-box .lookbook-variation {
    /* padding: 0 12px; */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.is-active .lookbook-box .lookbook-variation {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-duration: .3s;
    transition-delay: .1s;
}
.lookbook-variation select {
    width: 100%;
    font-size: 12px;
    line-height: 1.2;
    padding: 2px 24px 2px 6px;
    min-height: auto;
    border: 1px solid #ddd;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M5 6L0 0h10z'/%3E%3C/svg%3E") no-repeat right 8px center / 8px;
    color: #1d2327;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    margin-bottom: 4px;
    box-sizing: border-box;
}
.lookbook-variation select:last-child { margin-bottom: 0; }
.dark .lookbook-variation select { background-color: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.yellow .lookbook-variation select { border-color: #ccc; }
/* Disabled add-to-cart before a variation is selected. Stays clickable so the
   click handler can flash the selects that still need a choice. */
.lookbook-cart .lookbook-variation-btn[aria-disabled] {
    opacity: .45;
    cursor: default;
}

.lookbook-box .lookbook-product {
    text-align: left;
	display: block;
	overflow: hidden;
	opacity: 0;
    outline:none;
	visibility: hidden;
    text-decoration: none;
	transition: all 0.25s ease;
	transform: translateY(-10px);
    position: relative;
    z-index: 1;
}

/* ============================================================
   Mobile bottom-sheet drawer (added in 1.2.0)
   ============================================================ */
/* The sheet is toast-like: no backdrop, the page keeps scrolling behind it.
   Optional "Mobile Display" setting ("Bottom sheet"); Compact is the default.
   The whole block below is scoped with ":not(.lookbook-mobile-compact)" so the
   "Compact" alternative — the ordinary desktop box, just sized down (see the
   card-grid / legacy small-screen rules further down) — is left untouched. */

@media (max-width: 768px) {

    /* Every box is a full-width bottom sheet parked below the screen edge;
       toggling .is-active slides it up/down, so BOTH opening and closing
       animate smoothly (the old one-way keyframe made closing pop).
       Inside, the sheet is a product card laid out on a grid: a 3:4 thumb
       on the left and the name / price / variation / quick view /
       add-to-cart stack on the right. The link wrappers use
       display:contents so their children become grid items directly. */
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box {
        position: fixed !important;
        /* left/width default to full-bleed here, but positionSheet() (JS)
           overrides them inline to match the lookbook photo's own bounds —
           see openSheet() in shoppable-lookbook-image-hotspots.js. Not !important so that
           inline override wins without needing setProperty(..., 'important').
           right must stay auto — right:0 !important + left/width from JS made
           some engines stick the sheet to the viewport's right edge (carousel). */
        left: 0;
        width: 100%;
        right: auto !important;
        bottom: 0 !important;
        top: auto !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: hidden;
        transform: translateY(105%) !important;
        transition: transform .34s cubic-bezier(.32, .72, .28, 1), visibility 0s linear .34s !important;
        z-index: 100001;
        background: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, .18);
        padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box;
        pointer-events: none;
        display: grid;
        grid-template-columns: clamp(96px, 30vw, 130px) minmax(0, 1fr);
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb info"
            "thumb variation"
            "thumb qv"
            "thumb cart";
        column-gap: 14px;
        align-items: start;
    }
    /* Custom-link markers can have no thumbnail: collapse to one column so
       the text doesn't sit next to an empty image slot. */
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box:not(:has(.product-image)) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "info"
            "variation"
            "qv"
            "cart";
    }
    /* The sheet keeps the box colour the user chose — the theme text colours
       (.dark h3 #fff, etc.) then stay readable on mobile too. */
    .shopspot:not(.lookbook-mobile-compact) .dark   .lookbook-marker .lookbook-box { background: #1b1c1e; }
    .shopspot:not(.lookbook-mobile-compact) .yellow .lookbook-marker .lookbook-box { background: #ffb818; }
    .shopspot:not(.lookbook-mobile-compact) .blue   .lookbook-marker .lookbook-box { background: #2563eb; }
    .shopspot:not(.lookbook-mobile-compact) .green  .lookbook-marker .lookbook-box { background: #16a34a; }
    .shopspot:not(.lookbook-mobile-compact) .rose   .lookbook-marker .lookbook-box { background: #e84393; }
    .shopspot:not(.lookbook-mobile-compact) .custom .lookbook-marker .lookbook-box { background: var(--lb-bg, #fff); }
    /* Only the PORTAL sheet (moved under <body> by openSheet) may show:
       a box still inside its marker sits within transformed ancestors
       (flipbook 3D pages, carousel slides) where position:fixed lands in
       the middle of the page instead of the viewport. */
    .lookbook-sheet-host .lookbook-marker.is-active .lookbook-box {
        visibility: visible;
        transform: translateY(0) !important;
        transition: transform .34s cubic-bezier(.32, .72, .28, 1) !important;
        pointer-events: auto;
    }

    /* Drop the desktop arrow/decoration; repurpose ::before as a drag handle. */
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box::after {
        display: none !important;
    }
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        top: 8px !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 36px !important;
        height: 4px !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
        background: rgba(0, 0, 0, .16) !important;
        border-radius: 2px !important;
        box-shadow: none !important;
        transition: none !important;
        opacity: 1 !important;
    }
    .shopspot:not(.lookbook-mobile-compact) .dark .lookbook-marker .lookbook-box::before,
    .shopspot:not(.lookbook-mobile-compact) .blue .lookbook-marker .lookbook-box::before,
    .shopspot:not(.lookbook-mobile-compact) .green .lookbook-marker .lookbook-box::before,
    .shopspot:not(.lookbook-mobile-compact) .rose .lookbook-marker .lookbook-box::before,
    .shopspot:not(.lookbook-mobile-compact) .lb-text-light .lookbook-marker .lookbook-box::before {
        background: rgba(255, 255, 255, .35) !important;
    }

    /* The product link and its .product-name wrapper dissolve into the grid
       so the thumb and the info block can sit in separate grid areas while
       both stay clickable (they remain descendants of the <a>). Sheet content
       INHERITS the box's visibility so nothing pops in/out while the sheet
       slides — and it stays hidden while the box is parked. (visible
       !important would leak: inside transformed ancestors — flipbook pages —
       a parked box lands just below the book, and force-visible children
       would show through its visibility:hidden.) */
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .lookbook-product,
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .lookbook-product > .product-name {
        display: contents !important;
        visibility: inherit !important;
    }
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .lookbook-variation {
        grid-area: variation;
        opacity: 1 !important;
        visibility: inherit !important;
        transform: none !important;
        transition: none !important;
        padding: 0 !important;
        margin-top: 10px;
    }
    /* Left column: square thumbnail, cropped to fill. */
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .product-image {
        grid-area: thumb;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        aspect-ratio: 1 / 1;
        display: block !important;
        margin: 0 !important;
        line-height: 0;
        overflow: hidden;
        border-radius: 10px;
    }
    /* With a variation select AND the cart button the right column grows
       tall, so the thumb goes 3:4 portrait to match the card height. */
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box.is-cart:has(.lookbook-variation) .product-image {
        aspect-ratio: 3 / 4;
    }
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .product-image img {
        display: block;
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        object-fit: cover;
        border-radius: 10px;
        transform: none !important;
    }
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .product-info {
        grid-area: info;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        /* Keep the first title line clear of the close button. */
        padding: 0 36px 0 0 !important;
        box-sizing: border-box;
        display: block !important;
        text-align: left !important;
        line-height: 1.4 !important;
    }
    /* Readable sizes on the sheet — the ≤560px desktop-box rules shrink the
       title/price to 10px, which is far too small for a full-width sheet. */
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .product-info h3 {
        font-size: 15px !important;
        line-height: 1.4 !important;
        font-weight: 600;
        margin: 0 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .product-price {
        margin-top: 6px;
        font-weight: 500;
    }
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .product-info .price,
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .product-info .amount {
        font-size: 15px !important;
        line-height: 1.4 !important;
        font-weight: 500;
    }
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .product-info del .price,
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .product-info del .amount {
        font-size: 12px !important;
        font-weight: 500;
    }

    /* Variation selects: thumb-friendly height; 16px stops iOS focus-zoom. */
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .lookbook-variation select {
        font-size: 14px;
        padding: 6px 32px 6px 10px;
        border-radius: 10px;
        margin-bottom: 8px;
        background-position: right 12px center;
    }

    /* Add to cart: fills the right column, pinned to the card bottom. */
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .lookbook-cart {
        grid-area: cart;
        align-self: end;
        display: block !important;
        width: 100% !important;
        padding: 12px 0 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: inherit !important;
        transform: none !important;
        transition: none !important;
    }
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .lookbook-cart .button {
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 999px;
    }

    /* Close button: clear, thumb-sized, top-right of the sheet. */
    .shopspot:not(.lookbook-mobile-compact) .lookbook-marker .lookbook-box .lookbook-close {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        left: auto !important;
        bottom: auto !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 16px;
        transform: none !important;
        opacity: 1 !important;
        visibility: inherit !important;
        transition: none !important;
        background: rgba(0, 0, 0, .07);
        color: #1d2327;
    }
    .shopspot:not(.lookbook-mobile-compact) .dark .lookbook-marker .lookbook-box .lookbook-close,
    .shopspot:not(.lookbook-mobile-compact) .blue .lookbook-marker .lookbook-box .lookbook-close,
    .shopspot:not(.lookbook-mobile-compact) .green .lookbook-marker .lookbook-box .lookbook-close,
    .shopspot:not(.lookbook-mobile-compact) .rose .lookbook-marker .lookbook-box .lookbook-close,
    .shopspot:not(.lookbook-mobile-compact) .lb-text-light .lookbook-marker .lookbook-box .lookbook-close {
        background: rgba(255, 255, 255, .16);
        color: #fff;
    }

    /* Sheet portal host: the open box is moved here (under <body>) because
       position:fixed breaks inside transformed ancestors (flipbook 3D pages).
       The host mirrors the lookbook classes for styling but takes no space.
       Keep transform/filter/contain off so nested position:fixed still uses
       the viewport (not this 0×0 host) as its containing block. */
    .lookbook-sheet-host {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        transform: none !important;
        filter: none !important;
        perspective: none !important;
        contain: none !important;
        will-change: auto !important;
        z-index: 100001;
    }
}

/* ============================================================
   Additional box colors (added in 1.2.0)
   ============================================================ */
.blue .lookbook-box::before  { background: #2563eb; }
.green .lookbook-box::before { background: #16a34a; }
.rose .lookbook-box::before  { background: #e84393; }

.blue .lookbook-box .lookbook-close,
.green .lookbook-box .lookbook-close,
.rose .lookbook-box .lookbook-close { background: rgba(255,255,255,0.14); color: #FFF; }

.blue .lookbook-box .lookbook-close:hover,
.green .lookbook-box .lookbook-close:hover,
.rose .lookbook-box .lookbook-close:hover { background: rgba(255,255,255,0.26); }

.blue .lookbook-product .product-name .product-info h3,
.green .lookbook-product .product-name .product-info h3,
.rose .lookbook-product .product-name .product-info h3 { color: #FFF; }

.blue .lookbook-product .product-price,
.green .lookbook-product .product-price,
.rose .lookbook-product .product-price { color: #FFF; opacity: .85; }

.blue .lookbook-product .price, .blue .lookbook-product .amount,
.green .lookbook-product .price, .green .lookbook-product .amount,
.rose .lookbook-product .price, .rose .lookbook-product .amount { color: #FFF; opacity: .8; }

.blue .lookbook-box .lookbook-quickview,
.green .lookbook-box .lookbook-quickview,
.rose .lookbook-box .lookbook-quickview { color: #FFF; }

.blue  .lookbook-cart .button,
.green .lookbook-cart .button,
.rose .lookbook-cart .button { background: #FFF; color: #000; opacity: .85; }

.blue  .lookbook-cart .button:hover,
.green .lookbook-cart .button:hover,
.rose .lookbook-cart .button:hover { background: #FFF; color: #000; opacity: 1; }

.lookbook-layout-2 .blue .lookbook-box::after  { background: #2563eb; }
.lookbook-layout-2 .green .lookbook-box::after { background: #16a34a; }
.lookbook-layout-2 .rose .lookbook-box::after  { background: #e84393; }

/* ============================================================
   Layout 3 — Tag (compact pill, no image) (added in 1.2.0)
   Row 1: name + price (the close button hugs this row).
   Row 2: Quick view link + pill Add to cart button side by side,
   each sized to its content. Variation selects (variable
   products) get a full row of their own in between.
   ============================================================ */
.lookbook-layout-3 .lookbook-box { width: auto; min-width: 220px; max-width: 320px; text-align: center; padding: 9px 14px; }
/* Unconditional (not desktop-only): the default mobile bottom sheet still
   overrides all of this with its own, higher-specificity !important grid —
   see ":not(.lookbook-mobile-compact)" in the sheet block above — so this
   only actually paints on desktop and on the "compact" mobile display style. */
.lookbook-layout-3 .lookbook-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 12px;
    row-gap: 7px;
}
/* Name + price fill the first row (minus the close button's corner),
   forcing everything else to wrap under them. */
.lookbook-layout-3 .lookbook-box .lookbook-product {
    flex: 0 0 calc(100% - 24px);
}
/* Variation selects take their own full row. */
.lookbook-layout-3 .lookbook-box .lookbook-variation {
    flex: 0 0 100%;
    margin: 0;
}
/* On a two-row tag the vertically-centred close would land on the
   Add to cart button — pin it to the middle of the first row. */
.lookbook-layout-3 .lookbook-box.is-cart .lookbook-close,
.lookbook-layout-3 .lookbook-box.is-preview .lookbook-close {
    top: 17px;
}
.lookbook-layout-3 .lookbook-cart {
    display: inline-flex !important;
    width: auto;
    margin: 0;
}
.lookbook-layout-3 .lookbook-cart .button {
    width: auto;
    padding: 7px 16px;
    border-radius: 999px;
}
/* Tag follows the same "Box Corner" setting as the other styles — the admin
   just suggests 50 (a full pill at Tag's height) as its default instead of 0,
   see the image1 handler in lookbook-admin.js. 999px here is only a fallback
   for markup rendered before --lb-radius is set. */
.lookbook-layout-3 .lookbook-box::before { border-radius: var(--lb-radius, 999px); }
.lookbook-layout-3 .lookbook-box .lookbook-close {
    top: 50%; right: 8px;
    height: 18px; width: 18px; line-height: 18px; font-size: 10px;
    background: rgba(0,0,0,0.10);
}
.lookbook-layout-3 .lookbook-box .lookbook-product { width: calc(100% - 22px); }
.lookbook-layout-3 .lookbook-product .product-name .product-image { display: none; }
.lookbook-layout-3 .lookbook-product .product-name .product-info { margin: 0; width: 100%; display: block; padding: 0; }
.lookbook-layout-3 .lookbook-product .product-name .product-info h3 { display: inline; font-size: 12px; line-height: 16px; font-weight: 600; }
.lookbook-layout-3 .lookbook-product .product-price { display: inline; margin-left: 8px; }
.lookbook-layout-3 .lookbook-product .price, .lookbook-layout-3 .lookbook-product .amount { font-size: 12px; line-height: 16px; font-weight: 500; }

/* ============================================================
   Box background opacity + custom colour (added in 1.2.1)
   ============================================================ */
.shopspot .lookbook-box::before { opacity: var(--lb-bg-opacity, 1); }

/* Custom colour: background comes from the --lb-bg variable */
.custom .lookbook-box::before { background: var(--lb-bg, #fff); }
.lookbook-layout-2 .custom .lookbook-box::after { background: var(--lb-bg, #fff); }

/* Text colour for custom backgrounds (chosen by luminance in PHP).
   !important so mobile-sheet / theme rules cannot leave Auto text unreadable. */
.lb-text-light .lookbook-product .product-name .product-info h3 { color: #FFF !important; }
.lb-text-dark .lookbook-product .product-name .product-info h3 { color: #000 !important; }
.lb-text-light .lookbook-product .product-price,
.lb-text-light .lookbook-product .price,
.lb-text-light .lookbook-product .amount { color: #FFF !important; opacity: .85; }
.lb-text-dark .lookbook-product .product-price,
.lb-text-dark .lookbook-product .price,
.lb-text-dark .lookbook-product .amount { color: #000 !important; opacity: .65; }
.lb-text-light .lookbook-box .lookbook-close { background: rgba(255,255,255,0.14) !important; color: #FFF !important; }
.lb-text-dark .lookbook-box .lookbook-close { background: rgba(0,0,0,0.10) !important; color: #000 !important; }

/* Custom marker image (added 1.2.4) */
.lookbook-grab-img {
    display: block;
    width: var(--lb-marker-size, 30px);
    height: auto;
    cursor: pointer;
    -webkit-user-drag: none;
    user-select: none;
}

/* ============================================================
   Marker animations (added in 1.3.0)
   ============================================================ */
.shopspot .lookbook-grab {
    border-radius: 50%;
}
/* Pulse: an expanding halo in the marker colour */
.lookbook-anim-pulse .lookbook-grab {
    animation: lbPulse 1.8s ease-out infinite;
}
@keyframes lbPulse {
    0%   { box-shadow: 0 0 0 0 var(--lb-marker-color, rgba(0,0,0,.5)); }
    70%  { box-shadow: 0 0 0 14px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
/* Beat: gentle scale */
.lookbook-anim-beat .lookbook-grab {
    animation: lbBeat 1.3s ease-in-out infinite;
}
@keyframes lbBeat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.18); }
}
/* Bounce: small vertical hop */
.lookbook-anim-bounce .lookbook-grab {
    animation: lbBounce 1.5s ease infinite;
}
@keyframes lbBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
/* Pause the animation on hover so the hover scale shows */
.shopspot .lookbook-grab:hover {
    animation-play-state: paused;
}
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .lookbook-anim-pulse .lookbook-grab,
    .lookbook-anim-beat .lookbook-grab,
    .lookbook-anim-bounce .lookbook-grab {
        animation: none;
    }
    .shopspot .lookbook-cart .button.loading::before {
        animation: none;
    }
}

/* Button colours for the dark / yellow / custom box variants. */
.dark .lookbook-cart .button { background: rgba(255,255,255,.9); color: #1d2327; }
.dark .lookbook-cart .button:hover { background: #fff; }
.yellow .lookbook-cart .button { background: #1d2327; color: #fff; }
.yellow .lookbook-cart .button:hover { background: #000; }

/* "Accordion" trigger — one box is always open on desktop, so no close button
   (opening another marker closes the current one instead). */
@media (min-width: 769px) {
    .lookbook-trigger-accordion .lookbook-close { display: none; }
}

/* Flash the variation selects that still need a choice */
.lookbook-variation-select.lb-attention {
    outline: 2px solid #e74c3c;
    outline-offset: 1px;
    animation: lb-attention-shake 0.4s ease 1;
}
@keyframes lb-attention-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-3px); }
    75%      { transform: translateX(3px); }
}

/* ── Scale to the photo, not just the viewport ────────────────────────────
   A lookbook often renders at a fraction of the screen (gallery slides,
   flipbook pages, narrow columns) where viewport media queries never fire.
   Cap marker and box sizes against the photo container (cqw). Browsers
   without container-query support drop the min(...cqw) declarations and
   keep the earlier viewport-based rules. */
/* Desktop only: container-type applies layout containment, which would make
   the lookbook the containing block for position:fixed descendants and pin
   the mobile bottom sheet inside the image instead of the viewport. */
@media (min-width: 769px) {
    .shopspot {
        container-type: inline-size;
    }
}
/* Below 561px the small-screen caps above stay in charge. */
@media (min-width: 561px) {
    .lookbook-grab {
        font-size: min(var(--lb-marker-size, 30px), 9cqw);
    }
    .lookbook-grab-img {
        width: min(var(--lb-marker-size, 30px), 9cqw);
    }
}
/* Below 769px the bottom-sheet rules (!important) own the box. */
@media (min-width: 769px) {
    .lookbook-layout-0 .lookbook-box { width: min(280px, 84cqw); }
    .lookbook-layout-1 .lookbook-box { width: min(180px, 62cqw); }
    .lookbook-layout-2 .lookbook-box { width: min(200px, 68cqw); }
    .lookbook-layout-3 .lookbook-box { min-width: min(220px, 64cqw); max-width: min(320px, 84cqw); }
}

/* ============================================================
   Card grid for layouts 0 and 4
   The default box stacked the variation selects under the whole
   product row; the card grid puts the thumb on the left with the
   Quick view link tucked under it, and stacks name / price /
   variations / Add to cart in the right column. The link wrappers
   dissolve with display:contents so their children become grid
   items.
   Unconditional (not desktop-only): the default mobile bottom sheet
   still overrides all of this with its own, higher-specificity
   !important grid — see ":not(.lookbook-mobile-compact)" in the
   sheet block above — so this only actually paints on desktop and
   on the "compact" mobile display style.
   ============================================================ */
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    /* The cart area stops at row 3 — the row whose bottom edge is the
       thumbnail's bottom edge — so the Add to cart button lines up with
       the thumb, with the Quick view row alone underneath. */
    grid-template-areas:
        "thumb info"
        "thumb variation"
        "thumb cart"
        "qv    .";
    column-gap: 10px;
    align-items: start;
    padding: 8px;
    box-sizing: border-box;
}
/* Custom links can have no thumbnail — collapse to one column. */
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box:not(:has(.product-image)) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "info"
        "variation"
        "cart"
        "qv";
}
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box .lookbook-product,
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box .lookbook-product > .product-name {
    display: contents;
}
/* Re-create the reveal animation the product link used to carry —
   opacity/transform have no effect on display:contents elements. */
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box .product-name .product-image,
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box .product-name .product-info {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}
:is(.lookbook-layout-0, .lookbook-layout-4) .is-active .lookbook-box .product-name .product-image,
:is(.lookbook-layout-0, .lookbook-layout-4) .is-active .lookbook-box .product-name .product-info {
    opacity: 1;
    transform: translateY(0);
    transition-duration: 0.3s;
    transition-delay: 0.2s;
}
/* Square thumb for simple products; 3:4 when the variation selects sit
   beside it and make the card taller. The aspect-ratio is a MINIMUM:
   align-self:stretch lets the thumb grow with the right column, so its
   bottom edge always lines up with the Add to cart button. */
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-product .product-name .product-image {
    grid-area: thumb;
    align-self: stretch;
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0;
    line-height: 0;
    overflow: hidden;
    border-radius: var(--lb-radius, 0px);
}
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box:has(.lookbook-variation) .product-name .product-image {
    aspect-ratio: 3 / 4;
}
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-product .product-name .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--lb-radius, 0px);
}
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-product .product-name .product-info {
    grid-area: info;
    display: block;
    width: auto;
    min-width: 0;
    margin: 0;
    /* Clear the close button on the first line. */
    padding-right: 28px;
    box-sizing: border-box;
}
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box .lookbook-variation {
    grid-area: variation;
    margin: 6px 0 0;
}
/* Right column, under the price/variations; pinned to the card bottom
   so it lines up with the Quick view row under the thumb. */
:is(.lookbook-layout-0, .lookbook-layout-4) .lookbook-box .lookbook-cart {
    grid-area: cart;
    align-self: end;
    margin-top: 6px;
}

@media (max-width: 600px) {
    .lookbook-layout-0 .lookbook-box {
        grid-template-columns: 56px minmax(0, 1fr);
    }
    .lookbook-layout-4 .lookbook-box {
        grid-template-columns: 60px minmax(0, 1fr);
    }
}

/* ============================================================
   Layout 4 — Bottom card
   The box ignores the marker position: positionLookbooks() pins
   it inside the photo, centred along the bottom edge (full photo
   width minus a margin, capped). Opening slides it up from the
   bottom. Shares the card grid with layout 0 above. On the default
   mobile display style the full-screen bottom-sheet drawer takes
   over as usual; on the "compact" mobile display style this
   in-photo positioning runs instead (see isBottomCard in
   positionLookbooks(), shoppable-lookbook-image-hotspots.js).
   ============================================================ */
.lookbook-layout-4 .lookbook-box {
    padding: 8px;
    transform: translateY(18px);
    transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
}
.lookbook-layout-4 .is-active .lookbook-box {
    transform: translateY(0);
    transition: transform .3s ease, opacity .3s ease;
}
/* Corner radius comes from the base .lookbook-box::before rule (--lb-radius) —
   no per-layout override needed here. */

/* ============================================================
   Content Color override (added in 1.4.0)
   Explicit light/dark content colour chosen in the editor for the
   box contents: product name, price, close icon, preview link and
   Add to Cart button. Must beat every box-colour preset, per-layout
   and mobile-sheet rule, hence the !important declarations.
   ============================================================ */
/* Product name */
.lb-content-light .lookbook-product .product-name .product-info h3 { color: #FFF !important; }
.lb-content-dark  .lookbook-product .product-name .product-info h3 { color: #000 !important; }

/* Price */
.lb-content-light .lookbook-product .product-price,
.lb-content-light .lookbook-product .price,
.lb-content-light .lookbook-product .amount { color: #FFF !important; opacity: .85; }
.lb-content-dark  .lookbook-product .product-price,
.lb-content-dark  .lookbook-product .price,
.lb-content-dark  .lookbook-product .amount { color: #000 !important; opacity: .65; }
.lb-content-light .lookbook-product del .price,
.lb-content-light .lookbook-product del .amount { color: rgba(255,255,255,.6) !important; }
.lb-content-dark  .lookbook-product del .price,
.lb-content-dark  .lookbook-product del .amount { color: rgba(0,0,0,.45) !important; }

/* Close icon */
.lb-content-light .lookbook-box .lookbook-close {
    color: #FFF !important;
    background: rgba(255,255,255,0.16) !important;
}
.lb-content-light .lookbook-box .lookbook-close:hover { background: rgba(255,255,255,0.28) !important; }
.lb-content-dark .lookbook-box .lookbook-close {
    color: #000 !important;
    background: rgba(0,0,0,0.10) !important;
}
.lb-content-dark .lookbook-box .lookbook-close:hover { background: rgba(0,0,0,0.2) !important; }

/* Add to cart button */
.lb-content-light .lookbook-cart .button { background: rgba(255,255,255,.92) !important; color: #1d2327 !important; }
.lb-content-light .lookbook-cart .button:hover { background: #FFF !important; }
.lb-content-dark  .lookbook-cart .button { background: #1d2327 !important; color: #FFF !important; }
.lb-content-dark  .lookbook-cart .button:hover { background: #000 !important; }

/* Variation selects (variable products) */
.lb-content-light .lookbook-variation select {
    background-color: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.3) !important;
    color: #FFF !important;
}
.lb-content-dark .lookbook-variation select {
    background-color: #FFF !important;
    border-color: #ddd !important;
    color: #1d2327 !important;
}

/* Mobile bottom sheet: drag handle follows the content colour */
@media (max-width: 768px) {
    .shopspot .lb-content-light .lookbook-marker .lookbook-box::before { background: rgba(255,255,255,.35) !important; }
    .shopspot .lb-content-dark  .lookbook-marker .lookbook-box::before { background: rgba(0,0,0,.16) !important; }
}
