/* ==========================================================================
   UpsellStack Frontend Styles
   ========================================================================== */

/* ---------- Focus Styles (WCAG 2.4.7) ---------- */
.upsellstack-offer__checkbox:focus-visible,
.upsellstack-offer__cta:focus-visible,
.upsellstack-fbt__check:focus-visible,
.upsellstack-fbt__attr-btn:focus-visible,
.upsellstack-fbt__variant-select:focus-visible,
.upsellstack-next-coupon__copy:focus-visible,
.upsellstack-popup-close:focus-visible,
.upsellstack-notif__close:focus-visible,
.upsellstack-notif__btn:focus-visible,
.upsellstack-add-all-cta:focus-visible,
.upsellstack-bundle-cta:focus-visible,
.upsellstack-pp-accept:focus-visible,
.upsellstack-pp-decline:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ---------- Offers (General) ---------- */
.upsellstack-offer {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

.upsellstack-offer__heading {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-left: 4px solid;
    border-radius: 8px 8px 0 0;
}

.upsellstack-offer__body {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
}

.upsellstack-offer__heading + .upsellstack-offer__body {
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.upsellstack-offer__product {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 8px 0;
}

.upsellstack-offer__product + .upsellstack-offer__product {
    border-top: 1px solid #f3f4f6;
    margin-top: 8px;
    padding-top: 16px;
}

.upsellstack-offer__image {
    flex: 0 0 64px;
}

.upsellstack-offer__image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.upsellstack-offer__details {
    flex: 1;
}

.upsellstack-offer__checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-wrap: wrap;
}

.upsellstack-offer__checkbox {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}

.upsellstack-offer__name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.upsellstack-offer__price {
    font-size: 14px;
    margin-left: auto;
}

.upsellstack-offer__price del {
    color: #9ca3af;
    font-size: 12px;
}

.upsellstack-offer__price ins {
    text-decoration: none;
    color: #059669;
    font-weight: 700;
}

.upsellstack-offer__savings {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 4px;
}

.upsellstack-offer__desc {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 0;
    width: 100%;
}

.upsellstack-offer__cta {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 8px;
}

.upsellstack-offer__cta:hover {
    opacity: 0.9;
}

/* ---------- Timer ---------- */
.upsellstack-offer__timer {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
}

.upsellstack-timer-countdown {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---------- Popup ---------- */
.upsellstack-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: upsellstack-fade-in 0.3s ease;
}

@keyframes upsellstack-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.upsellstack-popup {
    position: relative;
    width: 100%;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: upsellstack-slide-up 0.3s ease;
}

@keyframes upsellstack-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.upsellstack-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.2s;
}

.upsellstack-popup-close:hover {
    background: #e5e7eb;
}

/* ---------- Post Purchase ---------- */
.upsellstack-post-purchase-wrap {
    max-width: 600px;
    margin: 30px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.upsellstack-pp-header {
    text-align: center;
    margin-bottom: 24px;
}

.upsellstack-pp-header h2 {
    font-size: 22px;
    color: #1e293b;
    margin: 0 0 8px;
}

.upsellstack-pp-header p {
    color: #6b7280;
    margin: 0;
}

.upsellstack-pp-product {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.upsellstack-pp-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.upsellstack-pp-info {
    flex: 1;
}

.upsellstack-pp-info h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #1e293b;
}

.upsellstack-pp-price del {
    color: #9ca3af;
}

.upsellstack-pp-price ins {
    text-decoration: none;
    color: #059669;
    font-weight: 700;
    font-size: 18px;
}

.upsellstack-pp-savings {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 99px;
    margin-left: 8px;
}

.upsellstack-pp-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}

.upsellstack-pp-accept {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #3b82f6;
    color: #fff;
    transition: background 0.2s;
}

.upsellstack-pp-accept:hover {
    background: #2563eb;
}

.upsellstack-pp-decline {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
}

/* ---------- Frequently Bought Together ---------- */
.upsellstack-fbt {
    margin: 30px 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.upsellstack-fbt__heading {
    font-size: 18px;
    margin: 0 0 20px;
    color: #1e293b;
}

.upsellstack-fbt__products {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.upsellstack-fbt__product {
    text-align: center;
    min-width: 120px;
    max-width: 160px;
}

.upsellstack-fbt__product img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.upsellstack-fbt__product label {
    cursor: pointer;
    display: block;
}

.upsellstack-fbt__product--current {
    border: 2px solid #3b82f6;
    padding: 12px;
    border-radius: 8px;
}

.upsellstack-fbt--centered .upsellstack-fbt__product,
.upsellstack-fbt--centered .upsellstack-fbt__product--current {
    place-items: center;
}

.upsellstack-fbt__attributes {
    margin-top: 8px;
}

.upsellstack-fbt__attr-group {
    margin-bottom: 6px;
}

.upsellstack-fbt__attr-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
}

.upsellstack-fbt__attr-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.upsellstack-fbt__attr-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    color: #374151;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.upsellstack-fbt__attr-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.upsellstack-fbt__attr-btn--active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.upsellstack-fbt__attr-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.upsellstack-fbt__plus {
    font-size: 24px;
    font-weight: 700;
    color: #9ca3af;
}

.upsellstack-fbt__name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-top: 8px;
}

.upsellstack-fbt__price {
    display: block;
    font-size: 13px;
    margin-top: 4px;
}

.upsellstack-fbt__price del {
    color: #9ca3af;
    font-size: 12px;
}

.upsellstack-fbt__check {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.upsellstack-fbt__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.upsellstack-fbt__total {
    font-size: 16px;
    color: #374151;
}

.upsellstack-fbt__cta {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.upsellstack-fbt__cta:hover {
    opacity: 0.9;
}

/* ---------- Next Order Coupon ---------- */
.upsellstack-next-coupon {
    margin: 20px 0;
    border: 2px dashed #22c55e;
    border-radius: 12px;
    overflow: hidden;
}

.upsellstack-next-coupon__header {
    background: #f0fdf4;
    padding: 16px 20px;
}

.upsellstack-next-coupon__header h3 {
    margin: 0;
    color: #15803d;
    font-size: 18px;
}

.upsellstack-next-coupon__body {
    padding: 20px;
    text-align: center;
}

.upsellstack-next-coupon__code {
    display: inline-block;
    background: #f0fdf4;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 18px;
    color: #15803d;
    letter-spacing: 1px;
}

.upsellstack-next-coupon__copy {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.upsellstack-next-coupon__copy:hover {
    background: #16a34a;
}

.upsellstack-next-coupon__expiry {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

/* ---------- Cart badge ---------- */
.upsellstack-cart-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 4px;
}

.upsellstack-qty-locked {
    display: inline-block;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 13px;
    color: #6b7280;
}

/* ---------- Loading State ---------- */
.upsellstack-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ---------- Checkout Bump Desktop/Mobile Content ---------- */
.upsellstack-content--mobile {
    display: none !important;
}

/* Desktop centering */
.upsellstack-checkout-bump[data-desktop-center="1"] .upsellstack-content--desktop {
    text-align: center;
}
.upsellstack-checkout-bump[data-desktop-center="1"] .upsellstack-content--desktop div[style*="padding-left"] {
    text-align: left;
    display: inline-block;
}

/* Desktop full-width image */
.upsellstack-checkout-bump[data-desktop-image="full"] .upsellstack-bump-image {
    width: 100% !important;
    flex-basis: 100% !important;
}
.upsellstack-checkout-bump[data-desktop-image="full"] .upsellstack-bump-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
    object-fit: cover;
}
/* Desktop full-width + full-height — no max-height cap */
.upsellstack-checkout-bump[data-desktop-image="full"][data-desktop-img-height="full"] .upsellstack-bump-image img {
    max-height: none;
}

/* Desktop full-height image */
.upsellstack-checkout-bump[data-desktop-img-height="full"] .upsellstack-bump-image {
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.upsellstack-checkout-bump[data-desktop-img-height="full"] .upsellstack-bump-image img {
    flex: 1;
    min-height: 0;
    height: auto !important;
    object-fit: cover;
}

@media (max-width: 768px) {
    .upsellstack-content--desktop {
        display: none !important;
    }
    .upsellstack-content--mobile {
        display: block !important;
    }

    /* Mobile vertical alignment */
    .upsellstack-checkout-bump .upsellstack-bump-row {
        align-items: var(--usk-valign-mobile, flex-start) !important;
    }

    /* Full-width image on mobile */
    .upsellstack-checkout-bump[data-mobile-image="full"] .upsellstack-bump-image {
        width: 100% !important;
        flex-basis: 100% !important;
    }
    .upsellstack-checkout-bump[data-mobile-image="full"] .upsellstack-bump-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 200px;
        object-fit: cover;
    }

    /* Default (non-full-width) image on mobile — use mobile image width */
    .upsellstack-checkout-bump[data-mobile-image="default"] .upsellstack-bump-image {
        width: auto !important;
        flex-basis: auto !important;
        flex-shrink: 0 !important;
    }
    .upsellstack-checkout-bump[data-mobile-image="default"] .upsellstack-bump-image img {
        width: var(--usk-mobile-img-w, 114px) !important;
        height: var(--usk-mobile-img-h, 114px) !important;
    }

    /* Mobile full-height image */
    .upsellstack-checkout-bump[data-mobile-img-height="full"] .upsellstack-bump-image {
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }
    .upsellstack-checkout-bump[data-mobile-img-height="full"] .upsellstack-bump-image img {
        flex: 1;
        min-height: 0;
        height: auto !important;
        object-fit: cover;
    }
    /* Mobile full-width + full-height — no max-height cap */
    .upsellstack-checkout-bump[data-mobile-image="full"][data-mobile-img-height="full"] .upsellstack-bump-image img {
        max-height: none !important;
    }
    /* Mobile custom height (non-full) */
    .upsellstack-checkout-bump[data-mobile-img-height="auto"] .upsellstack-bump-image img {
        height: var(--usk-mobile-img-h, 114px) !important;
    }

    /* Override desktop full-width/height on mobile */
    .upsellstack-checkout-bump[data-desktop-image="full"] .upsellstack-bump-image {
        width: auto !important;
        flex-basis: auto !important;
    }
    .upsellstack-checkout-bump[data-desktop-img-height="full"] .upsellstack-bump-image {
        align-self: auto;
    }

    /* Center content on mobile */
    .upsellstack-checkout-bump[data-mobile-center="1"] .upsellstack-content--mobile {
        text-align: center;
    }
    .upsellstack-checkout-bump[data-mobile-center="1"] .upsellstack-bump-row {
        justify-content: center;
    }
    .upsellstack-checkout-bump[data-mobile-center="1"] .upsellstack-content--mobile div[style*="padding-left"] {
        text-align: left;
        display: inline-block;
    }
}

/* ---------- Add All Bumps ---------- */
@keyframes upsellstack-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .upsellstack-pp-product {
        flex-direction: column;
        text-align: center;
    }
    .upsellstack-pp-actions {
        width: 100%;
    }
    .upsellstack-fbt__products {
        flex-direction: column;
    }
    .upsellstack-fbt__plus {
        transform: rotate(90deg);
    }
    .upsellstack-offer__product {
        flex-wrap: wrap;
    }
}

/* ---------- Cart Threshold Offers ---------- */
.upsellstack-threshold {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.upsellstack-threshold__bar-wrap {
    padding-top: 12px;
    padding-bottom: 20px;
}
.upsellstack-threshold__marker--next > div:first-child {
    animation: upsellstack-pulse 2s infinite;
}
@media (max-width: 480px) {
    .upsellstack-threshold__marker div:last-child {
        display: none;
    }
}

/* ---------- Post-Add Notification ---------- */

/* Shared */
.upsellstack-notif-overlay {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.upsellstack-notif-overlay.upsellstack-notif--visible {
    opacity: 1;
}
.upsellstack-notif {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    padding: 32px;
    position: relative;
    text-align: center;
    max-width: 400px;
    width: 90vw;
}
.upsellstack-notif__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #4b5563;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.upsellstack-notif__close:hover {
    color: #374151;
}
.upsellstack-notif__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.upsellstack-notif__heading {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.upsellstack-notif__body {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.5;
}
.upsellstack-notif__product-image {
    margin: 0 auto 12px;
}
.upsellstack-notif__product-image img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
.upsellstack-notif__product-name {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    line-height: 1.4;
}
.upsellstack-notif__product-price {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.upsellstack-notif__savings {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 20px;
}
.upsellstack-notif__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.upsellstack-notif__btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    border: none;
}
.upsellstack-notif__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.upsellstack-notif__btn--primary {
    background: #3b82f6;
    color: #fff;
}
.upsellstack-notif__btn--secondary {
    background: #f3f4f6;
    color: #374151;
}
.upsellstack-notif__timer {
    margin-top: 16px;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.upsellstack-notif__timer-bar {
    height: 100%;
    background: #3b82f6;
    width: 100%;
    animation: upsellstack-timer-shrink linear forwards;
}
@keyframes upsellstack-timer-shrink {
    from { width: 100%; }
    to { width: 0%; }
}

/* Modal style */
.upsellstack-notif--modal {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

/* Toast style */
.upsellstack-notif--toast {
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.upsellstack-notif--toast.upsellstack-notif--visible {
    transform: translateX(0);
}
.upsellstack-notif--toast .upsellstack-notif {
    max-width: 340px;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.upsellstack-notif--toast .upsellstack-notif__icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin: 0 0 10px;
}
.upsellstack-notif--toast .upsellstack-notif__heading {
    font-size: 15px;
}
.upsellstack-notif--toast .upsellstack-notif__buttons {
    flex-direction: row;
}
.upsellstack-notif--toast .upsellstack-notif__btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Slide-in style */
.upsellstack-notif--slide-in {
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.upsellstack-notif--slide-in.upsellstack-notif--visible {
    transform: translateY(0);
}
.upsellstack-notif--slide-in .upsellstack-notif {
    max-width: 100%;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 24px 24px 32px;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
}
.upsellstack-notif--slide-in .upsellstack-notif__buttons {
    flex-direction: row;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .upsellstack-notif--toast {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: translateY(100%);
    }
    .upsellstack-notif--toast.upsellstack-notif--visible {
        transform: translateY(0);
    }
    .upsellstack-notif--toast .upsellstack-notif {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }
}

/* =========================================================================
   Slider Layout
   ========================================================================= */
.upsellstack-slider__heading {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin: 0 0 10px;
}
.upsellstack-slider__wrap { position: relative; }
.upsellstack-slider__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}
.upsellstack-slider__track::-webkit-scrollbar { display: none; }
.upsellstack-slider__card {
    scroll-snap-align: start;
    flex: 0 0 var(--usk-slider-basis, calc(33.333% - 8px));
    min-width: 140px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    background: #fff;
    box-sizing: border-box;
}
.upsellstack-slider__card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}
.upsellstack-slider__card-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.upsellstack-slider__card-price {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.upsellstack-slider__card-price del {
    font-weight: 400;
    font-size: 12px;
    color: #999;
    margin-right: 4px;
}
.upsellstack-slider__card-price ins {
    text-decoration: none;
}
.upsellstack-slider__card .upsellstack-offer__cta {
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
}
.upsellstack-slider__arrow--left,
.upsellstack-slider__arrow--right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}
.upsellstack-slider__arrow--left { left: -16px; }
.upsellstack-slider__arrow--right { right: -16px; }
@media (max-width: 768px) {
    .upsellstack-slider__card {
        flex: 0 0 var(--usk-slider-basis-mobile, calc(50% - 6px));
    }
    .upsellstack-slider__arrow--left,
    .upsellstack-slider__arrow--right { display: none; }
}
@media (max-width: 480px) {
    .upsellstack-slider__card {
        flex: 0 0 var(--usk-slider-basis-mobile, 85%);
    }
}

/* ---------- Product Grid ---------- */
.upsellstack-grid__heading {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin: 0 0 12px;
}
.upsellstack-grid__container {
    display: grid;
    grid-template-columns: repeat(var(--usk-grid-cols, 3), 1fr);
    gap: var(--usk-grid-gap, 16px);
}
.upsellstack-grid__card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.upsellstack-grid__card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}
.upsellstack-grid__card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.upsellstack-grid__card-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.upsellstack-grid__card-price {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.upsellstack-grid__card-price del {
    font-weight: 400;
    font-size: 12px;
    color: #999;
    margin-right: 4px;
}
.upsellstack-grid__card-price ins {
    text-decoration: none;
}
.upsellstack-grid__card .upsellstack-offer__cta {
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    margin-top: auto;
}
.upsellstack-grid__bundle {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.upsellstack-grid__bundle-label {
    font-weight: 700;
    font-size: 14px;
    color: #15803d;
}
.upsellstack-grid__bundle-price {
    font-weight: 800;
    font-size: 18px;
    color: #15803d;
    margin-left: 4px;
}
.upsellstack-grid__bundle-orig {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 6px;
}
.upsellstack-grid__bundle-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 6px;
}
.upsellstack-grid__bundle .upsellstack-offer__cta {
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .upsellstack-grid__container {
        grid-template-columns: repeat(var(--usk-grid-cols-m, 1), 1fr);
    }
}

/* Cart Discount Card */
.upsellstack-cart-discount {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.upsellstack-cart-discount__message .woocommerce-Price-amount {
    font-weight: 700;
}
