/**
 * Lashin FBT – Frontend Styles (Premium Redesign)
 * Refined, luxury aesthetic. LTR/RTL, responsive, theme-driven via CSS vars.
 */

.lashin-fbt-wrap {
    --lashin-fbt-bg: #ffffff;
    --lashin-fbt-btn: #8a6240;
    --lashin-fbt-text: #2b2b2b;
    --lashin-fbt-price: #8a6240;
    --lashin-fbt-badge: #c0392b;
    --lfbt-surface: #ffffff;
    --lfbt-surface-alt: #faf7f2;
    --lfbt-border: #ece5db;
    --lfbt-border-strong: #ddd0c0;
    --lfbt-muted: #9a8f80;
    --lfbt-success: #2e9e5b;
    --lfbt-success-bg: #eef9f1;
    --lfbt-shadow-sm: 0 1px 3px rgba(60,40,20,.06);
    --lfbt-shadow-md: 0 6px 24px rgba(60,40,20,.08);
    --lfbt-shadow-lg: 0 14px 40px rgba(60,40,20,.12);
    --lfbt-radius: 18px;
    --lfbt-radius-card: 14px;
    --lfbt-ease: cubic-bezier(.4,0,.2,1);
}

.lashin-fbt-wrap {
    background: var(--lashin-fbt-bg);
    border: 1px solid var(--lfbt-border);
    border-radius: var(--lfbt-radius);
    padding: 26px 28px 24px;
    margin: 28px 0;
    box-shadow: var(--lfbt-shadow-md);
    color: var(--lashin-fbt-text);
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: lashin-fbt-fade-up .5s var(--lfbt-ease) both;
}

.lashin-fbt-wrap::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lashin-fbt-btn) 0%, color-mix(in srgb, var(--lashin-fbt-btn) 55%, #e8c9a0) 100%);
}

.lashin-fbt-wrap *, .lashin-fbt-wrap *::before, .lashin-fbt-wrap *::after { box-sizing: border-box; }
.lashin-fbt-wrap[dir="rtl"] { direction: rtl; text-align: right; }

/* Title */
.lashin-fbt-title {
    margin: 0 0 22px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--lashin-fbt-text);
    position: relative;
    padding-bottom: 14px;
    line-height: 1.2;
}
.lashin-fbt-title::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 56px; height: 3px;
    border-radius: 3px;
    background: var(--lashin-fbt-btn);
}
[dir="rtl"] .lashin-fbt-title::after { left: auto; right: 0; }

/* Products Row */
.lashin-fbt-products-row { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.lashin-fbt-display-scroll .lashin-fbt-products-row,
.lashin-fbt-display-slider .lashin-fbt-products-row {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin;
    scrollbar-color: var(--lfbt-border-strong) transparent;
    padding-bottom: 6px; -webkit-overflow-scrolling: touch;
}
.lashin-fbt-products-row::-webkit-scrollbar { height: 6px; }
.lashin-fbt-products-row::-webkit-scrollbar-thumb { background: var(--lfbt-border-strong); border-radius: 6px; }

/* Plus separator */
.lashin-fbt-plus {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 400; color: var(--lfbt-muted);
    flex-shrink: 0; align-self: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--lfbt-surface-alt); border: 1px solid var(--lfbt-border);
    margin: 0 -2px; z-index: 1;
}

/* Product Card */
.lashin-fbt-product-card {
    background: var(--lfbt-surface);
    border: 1.5px solid var(--lfbt-border);
    border-radius: var(--lfbt-radius-card);
    padding: 14px 12px 16px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative;
    transition: border-color .25s var(--lfbt-ease), box-shadow .25s var(--lfbt-ease), transform .25s var(--lfbt-ease);
    min-width: 150px; max-width: 185px; flex: 1 1 150px; cursor: pointer;
}
.lashin-fbt-product-card:hover { border-color: var(--lfbt-border-strong); box-shadow: var(--lfbt-shadow-md); transform: translateY(-2px); }
.lashin-fbt-product-card.lashin-fbt-selected { border-color: var(--lashin-fbt-btn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lashin-fbt-btn) 14%, transparent); }
.lashin-fbt-product-card.lashin-fbt-oos { opacity: .5; pointer-events: none; filter: grayscale(.4); }

/* Checkbox */
.lashin-fbt-check-label { position: absolute; top: 10px; left: 10px; z-index: 3; margin: 0; line-height: 0; }
[dir="rtl"] .lashin-fbt-check-label { left: auto; right: 10px; }
.lashin-fbt-product-check {
    appearance: none; -webkit-appearance: none;
    width: 22px; height: 22px;
    border: 2px solid var(--lfbt-border-strong); border-radius: 7px;
    background: #fff; cursor: pointer; position: relative;
    transition: all .2s var(--lfbt-ease); margin: 0; flex-shrink: 0;
}
.lashin-fbt-product-check:hover { border-color: var(--lashin-fbt-btn); }
.lashin-fbt-product-check:checked { background: var(--lashin-fbt-btn); border-color: var(--lashin-fbt-btn); }
.lashin-fbt-product-check:checked::after {
    content: ""; position: absolute; top: 3px; left: 7px;
    width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.lashin-fbt-product-check:disabled { background: var(--lashin-fbt-btn); border-color: var(--lashin-fbt-btn); opacity: .55; cursor: not-allowed; }

/* Product Image */
.lashin-fbt-product-image { position: relative; margin: 10px auto 12px; width: 96px; height: 96px; flex-shrink: 0; }
.lashin-fbt-product-image a { display: block; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: var(--lfbt-surface-alt); }
.lashin-fbt-product-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--lfbt-ease); }
.lashin-fbt-product-card:hover .lashin-fbt-product-image img { transform: scale(1.06); }

/* Badge */
.lashin-fbt-badge {
    position: absolute; top: -8px; right: -8px;
    background: var(--lashin-fbt-badge); color: #fff;
    font-size: .68rem; font-weight: 700; padding: 3px 8px;
    border-radius: 20px; line-height: 1.4; white-space: nowrap; z-index: 2;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--lashin-fbt-badge) 40%, transparent);
}
[dir="rtl"] .lashin-fbt-badge { right: auto; left: -8px; }

/* Product Info */
.lashin-fbt-product-info { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lashin-fbt-product-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: .86rem; font-weight: 600; color: var(--lashin-fbt-text); text-decoration: none;
    line-height: 1.35; min-height: 2.3em; transition: color .2s var(--lfbt-ease);
}
.lashin-fbt-product-name:hover { color: var(--lashin-fbt-btn); }
.lashin-fbt-product-price { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: 2px; }
.lashin-fbt-regular-price { font-size: .74rem; color: var(--lfbt-muted); text-decoration: line-through; font-style: normal; }
.lashin-fbt-sale-price { font-size: 1rem; font-weight: 800; color: var(--lashin-fbt-price); font-style: normal; text-decoration: none; letter-spacing: -.01em; }
.lashin-fbt-sale-price .woocommerce-Price-currencySymbol { font-size: .78em; font-weight: 600; }
.lashin-fbt-oos-label { font-size: .72rem; color: var(--lashin-fbt-badge); font-weight: 600; margin-top: 2px; }
.lashin-fbt-variation-notice { font-size: .7rem; color: var(--lfbt-muted); font-style: italic; }

/* Quantity */
.lashin-fbt-qty-wrap { display: inline-flex; align-items: center; margin-top: 8px; border: 1.5px solid var(--lfbt-border); border-radius: 10px; overflow: hidden; background: var(--lfbt-surface-alt); }
.lashin-fbt-qty-btn { width: 28px; height: 28px; border: none; background: transparent; cursor: pointer; font-size: 1.05rem; line-height: 1; color: var(--lashin-fbt-text); transition: background .15s var(--lfbt-ease), color .15s var(--lfbt-ease); padding: 0; display: flex; align-items: center; justify-content: center; }
.lashin-fbt-qty-btn:hover { background: var(--lashin-fbt-btn); color: #fff; }
.lashin-fbt-qty { width: 34px; text-align: center; border: none; background: #fff; font-size: .85rem; font-weight: 600; padding: 4px 0; -moz-appearance: textfield; color: var(--lashin-fbt-text); align-self: stretch; }
.lashin-fbt-qty::-webkit-outer-spin-button, .lashin-fbt-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Totals */
.lashin-fbt-totals-wrap { margin-top: 22px; padding: 18px 20px; background: var(--lfbt-surface-alt); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.lashin-fbt-subtotal-row, .lashin-fbt-discount-row, .lashin-fbt-total-row, .lashin-fbt-savings-row { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; }
.lashin-fbt-label { color: var(--lfbt-muted); }
.lashin-fbt-subtotal-amount { color: var(--lfbt-muted); font-weight: 600; }
.lashin-fbt-discount-amount { color: var(--lfbt-success); font-weight: 700; }
.lashin-fbt-total-row { font-size: 1.2rem; font-weight: 800; padding-top: 10px; margin-top: 2px; border-top: 1px dashed var(--lfbt-border-strong); }
.lashin-fbt-total-row .lashin-fbt-label { color: var(--lashin-fbt-text); }
.lashin-fbt-total-amount { color: var(--lashin-fbt-price); letter-spacing: -.01em; }
.lashin-fbt-savings-row { background: var(--lfbt-success-bg); border-radius: 10px; padding: 8px 14px; color: var(--lfbt-success); font-weight: 700; font-size: .9rem; margin-top: 4px; }
.lashin-fbt-savings-row::before { content: "\2713"; margin-inline-end: 6px; font-weight: 800; }

/* Bundle Fixed Price Banner */
.lashin-fbt-bundle-price-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: 18px 0 6px; padding: 16px 22px; border-radius: 14px; color: #fff;
    background: linear-gradient(135deg, var(--lashin-fbt-btn) 0%, color-mix(in srgb, var(--lashin-fbt-btn) 75%, #000) 100%);
    box-shadow: var(--lfbt-shadow-md); position: relative; overflow: hidden;
}
.lashin-fbt-bundle-price-banner::after { content: ""; position: absolute; top: -50%; right: -10%; width: 140px; height: 200%; background: rgba(255,255,255,.07); transform: rotate(25deg); }
.lashin-fbt-bundle-price-label { font-size: .98rem; font-weight: 600; opacity: .95; z-index: 1; }
.lashin-fbt-bundle-price-amount { font-size: 1.5rem; font-weight: 800; white-space: nowrap; z-index: 1; letter-spacing: -.01em; }
.lashin-fbt-bundle-price-amount .woocommerce-Price-currencySymbol { font-size: .8em; }
.lashin-fbt-has-bundle-price .lashin-fbt-sale-price { text-decoration: line-through; opacity: .5; font-size: .82rem; font-weight: 600; }

/* Action button */
.lashin-fbt-actions { margin-top: 18px; }
.lashin-fbt-add-btn {
    width: 100%; padding: 16px 24px; font-size: 1rem; font-weight: 700; letter-spacing: .01em;
    border: none; border-radius: 14px; cursor: pointer; color: #fff; background: var(--lashin-fbt-btn);
    transition: transform .2s var(--lfbt-ease), box-shadow .2s var(--lfbt-ease), filter .2s var(--lfbt-ease);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--lashin-fbt-btn) 30%, transparent);
    position: relative; overflow: hidden;
}
.lashin-fbt-add-btn::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); transition: left .6s var(--lfbt-ease); }
.lashin-fbt-add-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 10px 26px color-mix(in srgb, var(--lashin-fbt-btn) 38%, transparent); }
.lashin-fbt-add-btn:hover:not(:disabled)::before { left: 130%; }
.lashin-fbt-add-btn:active:not(:disabled) { transform: translateY(0); }
.lashin-fbt-add-btn:disabled { opacity: .55; cursor: not-allowed; }
.lashin-fbt-add-btn.lashin-fbt-loading-state { cursor: wait; }
.lashin-fbt-add-btn .lashin-fbt-loading { display: inline-flex; align-items: center; gap: 8px; }

/* Notice */
.lashin-fbt-notice { margin-top: 12px; font-size: .9rem; border-radius: 12px; padding: 0; transition: all .3s var(--lfbt-ease); overflow: hidden; max-height: 0; line-height: 1.5; }
.lashin-fbt-notice.lashin-fbt-notice-success { background: var(--lfbt-success-bg); color: #1e7e44; padding: 12px 16px; max-height: 120px; border: 1px solid #b6e3c4; }
.lashin-fbt-notice.lashin-fbt-notice-error { background: #fdeceb; color: #b03a2e; padding: 12px 16px; max-height: 160px; border: 1px solid #f3c6c1; }
.lashin-fbt-notice a { margin-inline-start: 8px; color: inherit; font-weight: 800; text-decoration: underline; }

/* Slider Nav */
.lashin-fbt-slider-nav { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.lashin-fbt-slider-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--lfbt-border-strong); background: #fff; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; color: var(--lashin-fbt-text); transition: all .2s var(--lfbt-ease); }
.lashin-fbt-slider-btn:hover { background: var(--lashin-fbt-btn); color: #fff; border-color: var(--lashin-fbt-btn); }

/* Cart Loading Overlay */
.lashin-fbt-cart-loader { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 999999; border-radius: inherit; }
.lashin-fbt-cart-spinner { width: 46px; height: 46px; border: 4px solid rgba(138,98,64,0.15); border-top-color: var(--lashin-fbt-btn, #8a6240); border-radius: 50%; animation: lashin-fbt-spin .7s linear infinite; }
@keyframes lashin-fbt-spin { to { transform: rotate(360deg); } }
#csc-slide-cart-wrapper .lashin-fbt-cart-loader, #csc-slide-cart-content .lashin-fbt-cart-loader { position: fixed; inset: auto; }

/* Hide in popups/slide carts */
.csc-slide-cart-wrapper .lashin-fbt-wrap, .csc-slide-cart-content .lashin-fbt-wrap, #csc-slide-cart-wrapper .lashin-fbt-wrap,
.xoo-wsc-container .lashin-fbt-wrap, .woo-fly-cart .lashin-fbt-wrap, .cart-popup .lashin-fbt-wrap, .mini-cart .lashin-fbt-wrap,
.widget_shopping_cart .lashin-fbt-wrap, .woocommerce-mini-cart .lashin-fbt-wrap,
[class*="slide-cart"] .lashin-fbt-wrap, [class*="fly-cart"] .lashin-fbt-wrap, [class*="cart-drawer"] .lashin-fbt-wrap, [class*="cart-popup"] .lashin-fbt-wrap,
[id*="slide-cart"] .lashin-fbt-wrap, [id*="fly-cart"] .lashin-fbt-wrap, [id*="cart-drawer"] .lashin-fbt-wrap { display: none !important; }

@keyframes lashin-fbt-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 600px) {
    .lashin-fbt-wrap { padding: 16px 12px; border-radius: 14px; margin: 18px 0; }
    .lashin-fbt-title { font-size: 1.2rem; margin-bottom: 14px; }

    /* GRID mode: real columns side-by-side (controlled by the merchant) */
    .lashin-fbt-display-grid {
        display: grid !important;
        grid-template-columns: repeat(var(--lashin-fbt-cols-mobile, 3), minmax(0, 1fr)) !important;
        gap: 6px !important;
        overflow: visible !important;
        flex-wrap: initial !important;
    }
    .lashin-fbt-display-grid .lashin-fbt-plus { display: none !important; } /* separators break the grid */
    .lashin-fbt-display-grid .lashin-fbt-product-card {
        min-width: 0 !important;
        max-width: none !important;
        flex: initial !important;
        width: auto !important;
        padding: 8px 5px 10px !important;
    }
    .lashin-fbt-display-grid .lashin-fbt-product-image,
    .lashin-fbt-display-grid .lashin-fbt-product-image a {
        width: var(--lashin-fbt-mobile-img, 64px) !important;
        height: var(--lashin-fbt-mobile-img, 64px) !important;
    }
    .lashin-fbt-display-grid .lashin-fbt-product-name {
        font-size: var(--lashin-fbt-mobile-fs, 11px) !important;
        line-height: 1.3 !important;
    }
    .lashin-fbt-display-grid .lashin-fbt-product-price,
    .lashin-fbt-display-grid .lashin-fbt-sale-price,
    .lashin-fbt-display-grid .lashin-fbt-regular-price {
        font-size: calc(var(--lashin-fbt-mobile-fs, 11px) + 1px) !important;
    }
    .lashin-fbt-display-grid .lashin-fbt-qty-wrap { transform: scale(.9); transform-origin: center; }
    .lashin-fbt-display-grid .lashin-fbt-check-label,
    .lashin-fbt-display-grid .lashin-fbt-product-check,
    .lashin-fbt-display-grid .lashin-fbt-check-box { width: 20px !important; height: 20px !important; }

    /* SCROLL / SLIDER modes keep horizontal scrolling */
    .lashin-fbt-display-scroll,
    .lashin-fbt-display-slider { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
    .lashin-fbt-display-scroll .lashin-fbt-product-card,
    .lashin-fbt-display-slider .lashin-fbt-product-card { min-width: 132px; max-width: 150px; flex: 0 0 138px; scroll-snap-align: start; }

    .lashin-fbt-totals-wrap { padding: 14px 16px; margin-top: 16px; }
    .lashin-fbt-total-row { font-size: 1.1rem; }
    .lashin-fbt-add-btn { padding: 13px 18px; font-size: .95rem; }
    .lashin-fbt-bundle-price-banner { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
    .lashin-fbt-bundle-price-amount { font-size: 1.3rem; }
}

/* Very narrow phones: keep 3-up readable */
@media (max-width: 360px) {
    .lashin-fbt-display-grid .lashin-fbt-product-image,
    .lashin-fbt-display-grid .lashin-fbt-product-image a { width: 52px !important; height: 52px !important; }
    .lashin-fbt-display-grid .lashin-fbt-product-card { padding: 7px 4px 9px !important; }
}

@media print { .lashin-fbt-wrap { display: none !important; } }

/* In-button spinner */
.lashin-fbt-btn-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lashin-fbt-spin .6s linear infinite;
    vertical-align: middle;
}

/* Header with badge */
.lashin-fbt-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.lashin-fbt-header .lashin-fbt-title { margin-bottom: 0; }

/* Collection discount badge */
.lashin-fbt-collection-badge {
    display: inline-flex; align-items: center;
    background: var(--lfbt-success); color: #fff;
    font-size: .82rem; font-weight: 800; letter-spacing: .01em;
    padding: 6px 14px; border-radius: 30px;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--lfbt-success) 35%, transparent);
    white-space: nowrap;
    animation: lashin-fbt-badge-pop .3s var(--lfbt-ease) both;
    align-self: center;
    margin-bottom: 14px;
}
@keyframes lashin-fbt-badge-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

/* Locked quantity state */
.lashin-fbt-qty-wrap-locked { opacity: .7; cursor: not-allowed; }
.lashin-fbt-qty-btn-locked { cursor: not-allowed; opacity: .4; }
.lashin-fbt-qty-btn-locked:hover { background: transparent !important; color: var(--lashin-fbt-text) !important; }
.lashin-fbt-qty-locked { background: var(--lfbt-surface-alt) !important; cursor: not-allowed; }
.lashin-fbt-qty-wrap-locked::after {
    content: "🔒"; font-size: .7rem; margin-inline-start: 4px; padding-inline-end: 6px; align-self: center; opacity: .6;
}

/* ============================================================
 * New options (v1.1): subtitle, select tools, scarcity, SKU,
 * forced columns. Appended block.
 * ============================================================ */
.lashin-fbt-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    opacity: 0.75;
    color: var(--lashin-fbt-text, #333);
}
.lashin-fbt-select-tools {
    display: flex;
    gap: 8px;
    margin: 6px 0 10px;
}
.lashin-fbt-select-tools button {
    background: transparent;
    border: 1px solid var(--lashin-fbt-btn, #2c2c2c);
    color: var(--lashin-fbt-btn, #2c2c2c);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1.4;
}
.lashin-fbt-select-tools button:hover { opacity: 0.85; }
.lashin-fbt-product-sku {
    display: block;
    font-size: 11px;
    opacity: 0.6;
    margin: 2px 0;
}
.lashin-fbt-scarcity {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lashin-fbt-badge, #e74c3c);
}
.lashin-fbt-add-btn.lashin-fbt-disabled,
.lashin-fbt-add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
/* Forced columns on desktop grid (when --lashin-fbt-cols is set). */
@media (min-width: 768px) {
    .lashin-fbt-grid[style*="--lashin-fbt-cols"] .lashin-fbt-products-row {
        display: grid;
        grid-template-columns: repeat(var(--lashin-fbt-cols), 1fr);
        align-items: stretch;
    }
    .lashin-fbt-grid[style*="--lashin-fbt-cols"] .lashin-fbt-plus { display: none; }
}

/* ============================================================
 * RTL fix (v1.3.1): force the selection checkbox to be visible
 * and correctly positioned in both LTR and RTL, and override any
 * theme/Elementor RTL stylesheet that may hide or displace it.
 * Uses logical positioning so it sits top-start in both directions.
 * ============================================================ */
.lashin-fbt-wrap .lashin-fbt-check-label {
    display: block !important;
    position: absolute !important;
    top: 10px !important;
    inset-inline-start: 10px !important; /* LTR -> left, RTL -> right */
    inset-inline-end: auto !important;
    z-index: 5 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
/* Older explicit left/right rules are neutralised by the logical ones above. */
[dir="rtl"] .lashin-fbt-wrap .lashin-fbt-check-label,
.lashin-fbt-wrap[dir="rtl"] .lashin-fbt-check-label {
    left: auto !important;
    right: 10px !important;
}
.lashin-fbt-wrap .lashin-fbt-product-check {
    display: inline-block !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border: 2px solid var(--lashin-fbt-btn, #8a6240) !important;
    border-radius: 7px !important;
    background: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    flex: 0 0 auto !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
}
.lashin-fbt-wrap .lashin-fbt-product-check:checked {
    background: var(--lashin-fbt-btn, #8a6240) !important;
    border-color: var(--lashin-fbt-btn, #8a6240) !important;
}
.lashin-fbt-wrap .lashin-fbt-product-check:checked::after {
    content: "" !important;
    position: absolute !important;
    top: 3px !important;
    left: 7px !important;
    right: auto !important;
    width: 5px !important;
    height: 10px !important;
    border: solid #fff !important;
    border-width: 0 2.5px 2.5px 0 !important;
    transform: rotate(45deg) !important;
}

/* ============================================================
 * v1.3.4: Custom selection box (theme/RTL-proof).
 * The visible box is OUR OWN element (.lashin-fbt-check-box),
 * not the browser checkbox — so no theme/RTL stylesheet can
 * hide or misplace it. The native input stays for accessibility,
 * sitting invisibly on top to capture clicks.
 * ============================================================ */
.lashin-fbt-wrap .lashin-fbt-check-label {
    position: absolute !important;
    top: 10px !important;
    inset-inline-start: 10px !important;
    inset-inline-end: auto !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 6 !important;
    display: block !important;
    line-height: 0 !important;
    cursor: pointer;
}
/* Native checkbox: invisible but clickable, covering the box. */
.lashin-fbt-wrap .lashin-fbt-product-check {
    position: absolute !important;
    top: 0 !important;
    inset-inline-start: 0 !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 2 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
/* The visible custom box. */
.lashin-fbt-wrap .lashin-fbt-check-box {
    position: absolute !important;
    top: 0 !important;
    inset-inline-start: 0 !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    box-sizing: border-box !important;
    border: 2px solid var(--lashin-fbt-btn, #8a6240) !important;
    border-radius: 7px !important;
    background: #fff !important;
    z-index: 1 !important;
    pointer-events: none !important;
    transition: background .15s ease;
}
/* Checked → filled + checkmark (works for any text direction). */
.lashin-fbt-wrap .lashin-fbt-product-check:checked + .lashin-fbt-check-box {
    background: var(--lashin-fbt-btn, #8a6240) !important;
    border-color: var(--lashin-fbt-btn, #8a6240) !important;
}
.lashin-fbt-wrap .lashin-fbt-product-check:checked + .lashin-fbt-check-box::after {
    content: "" !important;
    position: absolute !important;
    top: 4px !important;
    left: 8px !important;   /* checkmark is symmetric; fixed offset is fine */
    width: 5px !important;
    height: 10px !important;
    border: solid #fff !important;
    border-width: 0 2.5px 2.5px 0 !important;
    transform: rotate(45deg) !important;
    box-sizing: content-box !important;
}
/* Disabled (e.g. forced main product / out of stock). */
.lashin-fbt-wrap .lashin-fbt-product-check:disabled + .lashin-fbt-check-box {
    opacity: .55 !important;
}

/* v1.3.5: minimum-selection hint + non-navigating product links */
.lashin-fbt-wrap .lashin-fbt-min-hint {
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff6f6;
    border: 1px solid #f3c9c9;
    color: #a23b3b;
    font-size: 13px;
    text-align: center;
}
/* Product image/name inside the box act as a selector, not a navigation link. */
.lashin-fbt-wrap .lashin-fbt-product-card a {
    cursor: pointer;
    pointer-events: none;
}
.lashin-fbt-wrap .lashin-fbt-product-card { cursor: pointer; }

/* v1.3.8: standard-look polish (desktop) */
.lashin-fbt-product-card { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.lashin-fbt-product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.lashin-fbt-add-btn { transition: filter .15s ease, transform .05s ease, box-shadow .15s ease; }
.lashin-fbt-add-btn:hover { filter: brightness(1.04); box-shadow: 0 6px 16px rgba(138,98,64,.22); }
.lashin-fbt-add-btn:active { transform: translateY(1px); }
.lashin-fbt-plus { transition: background .15s ease, color .15s ease; }
.lashin-fbt-totals-wrap { transition: box-shadow .15s ease; }
