/* ═══════════════════════════════════════════════════════════════
   Boost Sales & CRO — Frontend Styles
   All colors are driven by CSS custom properties set inline
   from admin settings, making the plugin fully portable.
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Property Defaults (overridden inline) ─── */
:root {
    --bsc-primary: #4a7c59;
    --bsc-badge-bg: #e53e3e;
    --bsc-badge-text: #ffffff;
    --bsc-radius: 4px;
    --bsc-announcement-bg: #4a7c59;
}

/* ═══════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════ */

/* Force product card containers to show overflow for badges */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    position: relative !important;
    overflow: visible !important;
}

/* Force the image wrapper to allow badge visibility */
.woocommerce ul.products li.product .product-thumbnail,
.woocommerce ul.products li.product .product-image,
.woocommerce ul.products li.product>a:first-child,
ul.products li.product .product-thumbnail,
ul.products li.product .product-image {
    position: relative !important;
    overflow: visible !important;
}

/* Base badge styles */
.bsc-badge {
    position: absolute !important;
    z-index: 20 !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.2;
    background: var(--bsc-badge-bg);
    color: var(--bsc-badge-text);
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* Pill style — rounded capsule */
.bsc-badge--pill {
    padding: 7px 16px;
    border-radius: 50px;
}

/* Ribbon style — flag with tail */
.bsc-badge--ribbon {
    padding: 7px 20px 7px 14px;
    border-radius: 0 4px 4px 0;
    left: 0 !important;
    right: auto !important;
}

.bsc-badge--ribbon::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 8px 14px 0;
    border-color: transparent transparent transparent var(--bsc-badge-bg);
}

/* Corner flag style */
.bsc-badge--corner {
    padding: 7px 16px;
    border-radius: var(--bsc-radius);
}

/* Positions */
.bsc-badge--top-left {
    top: 10px !important;
    left: 10px !important;
}

.bsc-badge--top-right {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
}

/* Ribbon always anchors to left edge */
.bsc-badge--ribbon.bsc-badge--top-left,
.bsc-badge--ribbon.bsc-badge--top-right {
    left: 0 !important;
    right: auto !important;
}

/* Loop badge: on product cards */
.bsc-badge--loop {
    font-size: 10px;
    padding: 6px 12px;
}

/* Single product badge — overlaid on the product image area */
.bsc-badge-wrapper-single {
    position: absolute !important;
    top: 10px;
    left: 0;
    z-index: 20;
    pointer-events: none;
    margin-bottom: 0;
}

/* Ensure the product gallery column is position-relative for badge overlay */
.product-gallery-column,
.woocommerce-product-gallery,
.product-images,
div.images,
.woocommerce div.product div.images {
    position: relative !important;
}

.bsc-badge--single {
    position: relative !important;
    display: inline-block;
    font-size: 13px;
    padding: 10px 22px;
    margin-bottom: 0;
    pointer-events: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    animation: bscBadgePulse 2.5s ease-in-out infinite;
}

/* Ribbon on single product — extra padding for tail */
.bsc-badge--ribbon.bsc-badge--single {
    padding-right: 28px;
    border-radius: 0 4px 4px 0;
    margin-left: 0;
}

/* When badge has inline background-color, ::after needs to match via custom property */
.bsc-badge--ribbon[style*="background-color"] {
    --bsc-badge-bg-override: inherit;
}

/* Hide default WooCommerce sale flash */
.woocommerce span.onsale {
    display: none !important;
}

/* Badge pulse animation */
@keyframes bscBadgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

/* ═══════════════════════════════════════════════════
   COUPONS
   ═══════════════════════════════════════════════════ */

.bsc-coupons-section {
    margin: 20px 0;
    padding: 0;
}

.bsc-coupons-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #333;
}

.bsc-coupon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px dashed var(--bsc-primary);
    border-radius: var(--bsc-radius);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bsc-coupon-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.bsc-coupon-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--bsc-primary);
}

.bsc-coupon-card__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.bsc-coupon-card__label {
    font-weight: 700;
    font-size: 14px;
    color: #222;
}

.bsc-coupon-card__desc {
    font-size: 12px;
    color: #666;
}

.bsc-coupon-card__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.bsc-coupon-card__code {
    background: #222;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.bsc-copy-btn,
.bsc-apply-btn {
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--bsc-radius);
    padding: 8px 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bsc-copy-btn {
    background: #f0f0f0;
    color: #333;
}

.bsc-copy-btn:hover {
    background: #e0e0e0;
}

.bsc-copy-btn__copied {
    display: none;
}

.bsc-copy-btn.copied .bsc-copy-btn__default {
    display: none;
}

.bsc-copy-btn.copied .bsc-copy-btn__copied {
    display: inline;
}

.bsc-apply-btn {
    background: var(--bsc-primary);
    color: #fff;
}

.bsc-apply-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.bsc-apply-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.bsc-apply-btn.success {
    background: #38a169;
}

/* ═══════════════════════════════════════════════════
   URGENCY TIMER
   ═══════════════════════════════════════════════════ */

.bsc-urgency-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin: 12px 0;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-radius: var(--bsc-radius);
    border-left: 4px solid #e53e3e;
}

.bsc-urgency-timer__icon {
    font-size: 24px;
    animation: bscFlicker 1s ease-in-out infinite;
}

@keyframes bscFlicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.bsc-urgency-timer__content {
    flex: 1;
}

.bsc-urgency-timer__label {
    display: block;
    font-size: 12px;
    color: #c53030;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.bsc-urgency-timer__countdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bsc-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    padding: 6px 10px;
    min-width: 46px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bsc-timer-value {
    font-size: 20px;
    font-weight: 800;
    color: #c53030;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.bsc-timer-label {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.bsc-timer-sep {
    font-size: 18px;
    font-weight: 700;
    color: #c53030;
    padding: 0 2px;
    animation: bscTimerBlink 1s step-end infinite;
}

@keyframes bscTimerBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════
   STOCK SCARCITY
   ═══════════════════════════════════════════════════ */

.bsc-stock-scarcity {
    margin: 12px 0;
    padding: 12px 16px;
    background: #fffbeb;
    border-radius: var(--bsc-radius);
    border-left: 4px solid #d69e2e;
}

.bsc-stock-scarcity__text {
    font-size: 14px;
    color: #744210;
    margin-bottom: 8px;
}

.bsc-stock-scarcity__bar-wrap {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.bsc-stock-scarcity__bar {
    height: 100%;
    background: linear-gradient(90deg, #e53e3e, #dd6b20);
    border-radius: 4px;
    transition: width 1s ease;
    animation: bscBarPulse 2s ease-in-out infinite;
}

@keyframes bscBarPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ═══════════════════════════════════════════════════
   TRUST BADGES
   ═══════════════════════════════════════════════════ */

.bsc-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.bsc-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
}

.bsc-trust-badge__icon {
    font-size: 18px;
}

.bsc-trust-badge__label {
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   STICKY ADD-TO-CART BAR
   ═══════════════════════════════════════════════════ */

.bsc-sticky-atc {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e2e8f0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bsc-sticky-atc.visible {
    transform: translateY(0);
}

.bsc-sticky-atc__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bsc-sticky-atc__product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.bsc-sticky-atc__img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--bsc-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bsc-sticky-atc__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bsc-sticky-atc__title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bsc-sticky-atc__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--bsc-primary);
}

.bsc-sticky-atc__btn {
    background: var(--bsc-primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--bsc-radius);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bsc-sticky-atc__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   ANNOUNCEMENT BAR
   ═══════════════════════════════════════════════════ */

.bsc-announcement-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bsc-announcement-bg);
    color: #fff;
    padding: 10px 40px 10px 20px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 99999;
    animation: bscSlideDown 0.4s ease;
}

@keyframes bscSlideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.bsc-announcement-bar__content {
    text-align: center;
    flex: 1;
}

.bsc-announcement-bar__link {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.bsc-announcement-bar__link:hover {
    opacity: 0.85;
    color: #fff;
}

.bsc-announcement-bar__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.bsc-announcement-bar__close:hover {
    color: #fff;
}

.bsc-announcement-bar.dismissed {
    display: none;
}

/* ═══════════════════════════════════════════════════
   RECENTLY VIEWED
   ═══════════════════════════════════════════════════ */

.bsc-recently-viewed {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
}

.bsc-recently-viewed__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #222;
}

.bsc-recently-viewed__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.bsc-rv-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: var(--bsc-radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.bsc-rv-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.bsc-rv-card__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.bsc-rv-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding: 10px 10px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bsc-rv-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--bsc-primary);
    padding: 0 10px 10px;
}

/* ═══════════════════════════════════════════════════
   TRAFFIC SOURCE BANNERS
   ═══════════════════════════════════════════════════ */

.bsc-source-banner,
.bsc-source-shop-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 24px;
    border-radius: var(--bsc-radius);
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
    animation: bscSlideDown 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.bsc-source-banner__text,
.bsc-source-shop-banner__text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.bsc-source-banner__subtext,
.bsc-source-shop-banner__sub {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

.bsc-source-shop-banner {
    border-radius: var(--bsc-radius);
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════
   UTM SCROLLING BANNER
   ═══════════════════════════════════════════════════ */

.bsc-utm-banner {
    position: relative;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 99998;
    padding: 8px 0;
}

.bsc-utm-banner__track {
    display: flex;
    animation: bscMarquee var(--bsc-marquee-speed, 30s) linear infinite;
}

.bsc-utm-banner__text {
    flex-shrink: 0;
    padding: 0 20px;
}

@keyframes bscMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.bsc-utm-banner__close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 2;
}

.bsc-utm-banner__close:hover {
    color: #fff;
}

.bsc-utm-banner.dismissed {
    display: none;
}

/* ═══════════════════════════════════════════════════
   PRODUCT PAGE CRO BLOCK
   ═══════════════════════════════════════════════════ */

.bsc-product-cro {
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
    border: 1px solid #d1fae5;
    border-radius: var(--bsc-radius);
}

.bsc-product-cro__social-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #065f46;
    font-weight: 600;
    margin-bottom: 10px;
}

.bsc-product-cro__dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: bscDotPulse 1.5s ease-in-out infinite;
}

@keyframes bscDotPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

.bsc-product-cro__savings {
    font-size: 14px;
    color: #b45309;
    background: #fef3c7;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
}

.bsc-product-cro__bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bsc-product-cro__bullets li {
    font-size: 13px;
    color: #374151;
    padding-left: 0;
}

/* ═══════════════════════════════════════════════════
   UPSELL POPUP
   ═══════════════════════════════════════════════════ */

.bsc-upsell-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bscFadeIn 0.3s ease;
}

@keyframes bscFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.bsc-upsell-popup {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    max-width: 520px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: bscPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bscPopIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.bsc-upsell-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 4px;
}

.bsc-upsell-popup__close:hover {
    color: #333;
}

.bsc-upsell-popup__header {
    text-align: center;
    margin-bottom: 24px;
}

.bsc-upsell-popup__check {
    font-size: 42px;
    margin-bottom: 8px;
}

.bsc-upsell-popup__title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.bsc-upsell-popup__reco-title {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.bsc-upsell-popup__products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.bsc-upsell-popup__loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 30px 0;
}

.bsc-upsell-card {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.bsc-upsell-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.bsc-upsell-card__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.bsc-upsell-card__info {
    padding: 10px;
    flex: 1;
}

.bsc-upsell-card__name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.bsc-upsell-card__name:hover {
    color: var(--bsc-primary);
}

.bsc-upsell-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--bsc-primary);
}

.bsc-upsell-card__match {
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #10b981;
    padding: 2px 8px;
    border-radius: 10px;
}

.bsc-upsell-card__add {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bsc-primary);
    background: #f3f4f6;
    border: none;
    border-top: 1px solid #e5e7eb;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.bsc-upsell-card__add:hover {
    background: var(--bsc-primary);
    color: #fff;
}

.bsc-upsell-card__add.added {
    background: #10b981;
    color: #fff;
}

.bsc-upsell-popup__actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.bsc-upsell-popup__btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.bsc-upsell-popup__btn--cart {
    background: var(--bsc-primary);
    color: #fff;
}

.bsc-upsell-popup__btn--cart:hover {
    opacity: 0.9;
    color: #fff;
}

.bsc-upsell-popup__btn--continue {
    background: #f3f4f6;
    color: #333;
}

.bsc-upsell-popup__btn--continue:hover {
    background: #e5e7eb;
}

/* ═══════════════════════════════════════════════════
   FREQUENTLY BOUGHT TOGETHER
   ═══════════════════════════════════════════════════ */

.bsc-bought-together {
    margin: 30px 0;
    padding: 28px;
    background: linear-gradient(135deg, #fefce8 0%, #fff 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.bsc-bought-together__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #222;
}

.bsc-bought-together__products {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.bsc-bought-together__plus {
    font-size: 28px;
    font-weight: 800;
    color: #d97706;
    flex-shrink: 0;
}

.bsc-bought-together__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    width: 150px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.bsc-bought-together__card--main {
    border-color: var(--bsc-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
}

.bsc-bought-together__checkbox-wrap {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.bsc-bt-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--bsc-primary);
    cursor: pointer;
}

.bsc-bought-together__img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.bsc-bought-together__info {
    text-align: center;
}

.bsc-bought-together__name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.bsc-bought-together__name:hover {
    color: var(--bsc-primary);
}

.bsc-bought-together__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--bsc-primary);
}

.bsc-bought-together__match {
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 10px;
}

.bsc-bought-together__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #fde68a;
}

.bsc-bought-together__total {
    font-size: 18px;
    color: #222;
}

.bsc-bought-together__total strong {
    color: var(--bsc-primary);
    font-size: 22px;
}

.bsc-bought-together__add-all {
    background: var(--bsc-primary);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.bsc-bought-together__add-all:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bsc-bought-together__add-all.loading {
    opacity: 0.7;
    pointer-events: none;
}

.bsc-bought-together__add-all.success {
    background: #10b981;
}

/* ═══════════════════════════════════════════════════
   CHECKOUT UPSELLS (BANNER LAYOUT)
   ═══════════════════════════════════════════════════ */

.bsc-checkout-upsell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--bsc-radius);
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bsc-checkout-upsell__title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bsc-checkout-upsell__products {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.bsc-checkout-upsell__products::-webkit-scrollbar {
    height: 6px;
}

.bsc-checkout-upsell__products::-webkit-scrollbar-track {
    background: transparent;
}

.bsc-checkout-upsell__products::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.bsc-checkout-upsell-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 260px;
    max-width: 300px;
    flex: 0 0 auto;
    background: #fff;
    gap: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bsc-checkout-upsell-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bsc-checkout-upsell-card__img-link {
    width: 48px;
    min-width: 48px;
    margin: 0;
}

.bsc-checkout-upsell-card__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.bsc-checkout-upsell-card__info {
    flex: 1;
    text-align: left;
    margin: 0;
}

.bsc-checkout-upsell-card__name {
    display: -webkit-box;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 2px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bsc-checkout-upsell-card__name:hover {
    color: var(--bsc-primary);
}

.bsc-checkout-upsell-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--bsc-primary);
    display: block;
}

.bsc-checkout-upsell-card__action {
    white-space: nowrap;
}

.bsc-checkout-upsell-card__add {
    background: var(--bsc-primary);
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.bsc-checkout-upsell-card__add:hover {
    opacity: 0.9;
    color: #fff;
}

.bsc-checkout-upsell-card__add.loading {
    opacity: 0.7;
    pointer-events: none;
}

.bsc-checkout-upsell-card__add.added {
    background: #10b981;
}

/* Override old generic grid/list modifiers if they exist */
.bsc-checkout-upsell--grid .bsc-checkout-upsell__products,
.bsc-checkout-upsell--list .bsc-checkout-upsell__products {
    display: flex;
    grid-template-columns: none;
}

.bsc-checkout-upsell--list .bsc-checkout-upsell-card,
.bsc-checkout-upsell--grid .bsc-checkout-upsell-card {
    flex-direction: row;
}

/* ═══════════════════════════════════════════════════
   THANK YOU POPUP
   ═══════════════════════════════════════════════════ */

.bsc-thankyou-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bsc-thankyou-overlay.bsc-active {
    opacity: 1;
    visibility: visible;
}

.bsc-thankyou-popup {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: var(--bsc-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.bsc-thankyou-overlay.bsc-active .bsc-thankyou-popup {
    transform: scale(1) translateY(0);
}

.bsc-thankyou-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsc-thankyou-popup__close:hover {
    background: #f1f1f1;
}

.bsc-thankyou-popup__image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.bsc-thankyou-popup__content {
    padding: 30px;
    text-align: center;
}

.bsc-thankyou-popup__heading {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.bsc-thankyou-popup__text {
    margin: 0 0 25px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.bsc-thankyou-popup__btn {
    display: inline-block;
    background: var(--bsc-primary);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--bsc-radius);
    transition: background 0.2s, transform 0.2s;
}

.bsc-thankyou-popup__btn:hover {
    background: filter(var(--bsc-primary) brightness(90%));
    transform: translateY(-2px);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   GAMIFICATION (CSGO ROULETTE)
   ═══════════════════════════════════════════════════ */

.bsc-gamification-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    animation: bscFadeIn 0.5s ease forwards;
}

.bsc-gamification-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90vw;
    padding: 40px 30px;
    position: relative;
    text-align: center;
    animation: bscPopIn 0.6s cubic-bezier(0.2, 1.2, 0.4, 1);
    /* Smoother bounce */
}

.bsc-gamification-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.bsc-gamification-close:hover {
    color: #333;
}

.bsc-gamification-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #222;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.bsc-gamification-header p {
    font-size: 15px;
    color: #666;
    margin: 0 0 25px;
}

.bsc-gamification-wheel-container {
    position: relative;
    width: 100%;
    margin: 20px auto 30px;
}

.bsc-gamification-roulette-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #111;
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.bsc-roulette-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #eab308;
    z-index: 10;
    box-shadow: 0 0 8px #eab308;
}

.bsc-roulette-marker::before,
.bsc-roulette-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.bsc-roulette-marker::before {
    top: -6px;
    border-top: 12px solid #eab308;
}

.bsc-roulette-marker::after {
    bottom: -6px;
    border-bottom: 12px solid #eab308;
}

.bsc-roulette-window {
    width: 100%;
    height: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.bsc-roulette-track {
    display: flex;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform;
}

.bsc-roulette-segment {
    flex: 0 0 110px;
    width: 110px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #222;
    background: #1a1a1a;
    padding: 10px;
    position: relative;
}

.bsc-roulette-segment::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--segment-color, #ccc);
}

.bsc-roulette-segment__icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.bsc-roulette-segment__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 5px;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
}

.bsc-roulette-segment__title {
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bsc-wheel-spin-btn {
    margin-top: 20px;
    background: var(--bsc-primary);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bsc-wheel-spin-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.bsc-wheel-spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bsc-gamification-result {
    min-height: 80px;
}

#bsc-gamification-result-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bsc-primary);
    margin: 0 0 10px;
}

#bsc-gamification-result-desc {
    font-size: 15px;
    color: #444;
    margin: 0 0 20px;
}

.bsc-gamification-apply-btn {
    background: var(--bsc-primary);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    width: 100%;
}

.bsc-gamification-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bsc-gamification-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

/* Timer Bar */
.bsc-gamification-timer-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
    z-index: 999998;
    padding: 15px;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
}

.bsc-gamification-timer-bar.active {
    bottom: 0;
}

.bsc-timer-bar-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    width: 100%;
    justify-content: space-between;
}

.bsc-timer-icon {
    font-size: 24px;
}

.bsc-timer-text {
    flex-grow: 1;
    font-size: 15px;
    color: #333;
}

.bsc-timer-countdown {
    background: #ef4444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 1px;
}

.bsc-timer-checkout-btn {
    background: #10b981;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.2s;
}

.bsc-timer-checkout-btn:hover {
    background: #059669;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .bsc-coupon-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .bsc-coupon-card__right {
        width: 100%;
        justify-content: flex-start;
    }

    .bsc-urgency-timer__countdown {
        gap: 2px;
    }

    .bsc-timer-unit {
        min-width: 38px;
        padding: 4px 6px;
    }

    .bsc-timer-value {
        font-size: 16px;
    }

    .bsc-trust-badges {
        gap: 10px;
    }

    .bsc-sticky-atc__inner {
        padding: 10px 16px;
    }

    .bsc-sticky-atc__title {
        font-size: 12px;
    }

    .bsc-sticky-atc__btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .bsc-recently-viewed__grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .bsc-badge--loop {
        font-size: 9px;
        padding: 4px 8px;
    }

    .bsc-announcement-bar {
        font-size: 12px;
        padding: 8px 36px 8px 12px;
    }

    .bsc-sticky-atc__img {
        width: 40px;
        height: 40px;
    }
}