:root {
    --ss-accent-color: #008060;
    --ss-border-color: #e1e3e5;
    --ss-selected-bg-color: #f6f6f7;
    --ss-gift-bg-color: #111111;
    --ss-text-color: #1a1a1a;
    --ss-subtitle-color: #6d7175;
}

/* Upsell Checkout Section */
.ss-upsell-checkout {
    margin-top: 8px !important;
    padding: 0 !important;
    border: none !important;
}

.ss-upsell-checkout__title {
    display: none !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ss-subtitle-color);
    text-align: center;
    margin-bottom: 12px;
}

.ss-upsell-checkout__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ss-upsell-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px !important;
    border: 1.5px solid var(--ss-border-color);
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    position: relative;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ss-upsell-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ss-upsell-item--selected {
    border-width: 2px;
}

.ss-upsell-item__checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
}

.ss-upsell-item__checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--ss-accent-color);
}

.ss-upsell-item__image-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f4f4f4;
}

.ss-upsell-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-upsell-item__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ss-upsell-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}


.ss-upsell-item__badge {
    display: inline-block;
    width: fit-content;
    padding: 2px 8px;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 9px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid #e5e7eb;
}

.ss-upsell-item__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    line-height: 1.3;
}

.ss-upsell-item__subtitle {
    font-size: 12px;
    color: #000000;
    margin: 2px 0 0;
    font-weight: 600;
}

.ss-upsell-item__price {
    flex-shrink: 0;
    text-align: right;
    margin-left: auto;
    min-width: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
}

.ss-upsell-item__final-price {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    line-height: 1.1;
}

.ss-upsell-item__original-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    white-space: nowrap;
    font-weight: 500;
}

.ss-bundle {
    margin-top: 12px;
    border-radius: 6px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ss-bundle__title {
    margin: 10px 0 24px 0;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #202223;
}

.ss-bundle__title:after,
.ss-bundle__title:before {
    content: "";
    display: block;
    height: 1.5px;
    flex-grow: 1;
}

.ss-bundle__title:before {
    background: linear-gradient(to right, transparent, #e1e3e5);
}

.ss-bundle__title:after {
    background: linear-gradient(to left, transparent, #e1e3e5);
}

.ss-bundle__bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ss-bundle__bars--grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: stretch;
    padding-top: 12px;
}

.ss-bundle__bars--grid .ss-bundle-bar {
    text-align: center;
}

.ss-bundle__bars--grid .ss-bundle-bar__main {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center;
    padding: 24px 14px 16px !important;
    gap: 8px;
}

.ss-bundle__bars--grid .ss-bundle-bar__left {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
}

.ss-bundle__bars--grid .ss-bundle-bar__right {
    align-items: center !important;
    width: 100%;
    margin-left: 0 !important;
}

.ss-bundle__bars--grid .ss-bundle-bar__badge {
    position: absolute !important;
    top: -10px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
}

.ss-bundle__bars--grid .ss-bundle-bar__variants {
    width: 100%;
    align-items: center;
}

.ss-bundle__bars--grid .ss-variant-select-wrapper {
    justify-content: center;
}

.ss-bundle-bar {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: var(--ss-border-radius, 12px);
    border: 1.5px solid var(--ss-border-color);
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    overflow: visible !important;
    position: relative;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); */
}

.ss-bundle-bar--selected {
    border-color: var(--ss-accent-color);
    border-width: 1.5px;
    background-color: var(--ss-selected-bg-color, #f6f6f7);
  /*  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);*/
    transform: translateY(-1px);
    z-index: 1;
}

.ss-bundle-bar__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px !important;
    width: 100%;
    gap: 12px;
    box-sizing: border-box;
}

.ss-bundle-bar__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ss-bundle-bar__indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d3d5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background-color: transparent;
}

.ss-bundle-bar--selected .ss-bundle-bar__indicator {
    border-color: var(--ss-accent-color);
    background-color: var(--ss-accent-color);
}

.ss-bundle-bar__indicator::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.ss-bundle-bar--selected .ss-bundle-bar__indicator::after {
    background: #fff;
}

.ss-bundle-bar__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.ss-bundle-bar__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ss-bundle-bar__title {
    font-size: 18px !important;
    font-weight: 700;
    margin: 0;
    color: var(--ss-text-color);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ss-bundle-bar__subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ss-subtitle-color);
    margin: 0 0 0;

    opacity: 0.9;
}

.ss-bundle-bar__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 130px;
}

.ss-bundle-bar__price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ss-bundle-bar__final-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ss-text-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.ss-bundle-bar__original-price {
    font-size: 13px;
    font-weight: 400;
    color: var(--ss-subtitle-color);
    text-decoration: line-through;
    line-height: 1.2;
    white-space: nowrap;
}

.ss-bundle-bar__badge {
    z-index: 10;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    background: #202223;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.ss-bundle-bar__savings-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    background: #e8e8e8;
    color: #555;
    transition: all 0.2s ease;
}

.ss-bundle-bar--selected .ss-bundle-bar__savings-badge {
    background: var(--ss-accent-color);
    color: #fff;
}

.ss-bundle-bar__gift {
    display: none;
    background: linear-gradient(90deg, var(--ss-accent-color), var(--ss-accent-color-transparent, var(--ss-accent-color)));
    background: linear-gradient(90deg, var(--ss-accent-color), color-mix(in srgb, var(--ss-accent-color) 80%, transparent));
    color: #fff;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 800;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ss-bundle-bar--selected .ss-bundle-bar__gift {
    display: flex;
}

.ss-bundle-bar__gift-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.ss-bundle-bar__gift-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
}

.ss-bundle-bar__gift-text {
    min-width: 0;
    line-height: 1.3;
}

.ss-bundle-bar__gift-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ss-bundle-bar__gift-free-price {
    font-size: 11px;
    font-weight: 900;
    color: #fff;
}

.ss-bundle-bar__gift-original-price {
    font-size: 12px;
    font-weight: 700;
    text-decoration: line-through;
    opacity: 0.85;
    color: #fff;
}

/* 🚀 Performance Optimization: Moved from JS to CSS */
.ss-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
}

.ss-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ss-modal-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ss-modal-header h4 {
    margin: 0;
    font-size: 16px;
}

.ss-modal-close {
    cursor: pointer;
    font-size: 20px;
    border: none;
    background: none;
}

.ss-modal-content {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ss-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.ss-product-item:hover {
    background: #f9f9f9;
}

.ss-product-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.ss-product-info {
    flex: 1;
}

.ss-product-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.ss-product-price {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.ss-slot-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 5px;
    background: #fff;
}

.ss-slot-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    background: #f4f4f4;
}

.ss-slot-info {
    flex: 1;
    min-width: 0;
}

.ss-slot-label {
    font-size: 10px;
    color: #888;
    display: block;
}

.ss-slot-title {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.ss-slot-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

/* Completed Bundle Layouts */
.ss-completed-bundle {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--ss-border-color);
    border-radius: var(--ss-border-radius);
    background: #fff;
    margin: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.ss-cb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.ss-cb-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ss-text-color);
}

.ss-cb-badge {
    background: var(--ss-accent-color);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.ss-cb-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
}

.ss-cb-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.ss-cb-product img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #fafafa;
}

.ss-cb-product-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--ss-text-color);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-cb-product-price {
    font-size: 11px;
    font-weight: 700;
    color: var(--ss-accent-color);
}

.ss-cb-plus {
    font-size: 20px;
    color: #ccc;
    font-weight: 300;
    flex-shrink: 0;
}

.ss-cb-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.ss-cb-total-label {
    font-size: 12px;
    color: var(--ss-subtitle-color);
}

.ss-cb-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ss-cb-final-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--ss-text-color);
}

.ss-cb-orig-wrap {
    display: flex;
    gap: 6px;
    font-size: 12px;
}

.ss-cb-orig-price {
    text-decoration: line-through;
    color: var(--ss-subtitle-color);
}

.ss-cb-total-savings {
    color: var(--ss-accent-color);
    font-weight: 600;
}

@media (max-width: 480px) {
    .ss-cb-product-row {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .ss-cb-product {
        flex-direction: row;
        text-align: left;
        gap: 12px;
        max-width: none;
    }

    .ss-cb-product img {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }

    .ss-cb-plus {
        text-align: center;
        line-height: 1;
        padding: 0;
    }

    .ss-cb-product-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 12px;
    }
}

/* Skeleton Placeholder — visible until JS validates & renders a bundle */
.ss-bundle-placeholder {
    width: 100%;
    height: 180px;
    background: #f1f1f2;
    border-radius: 10px;
    margin: 12px 0;
    overflow: hidden;
    position: relative;
    display: block;
}

.ss-bundle-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: ss-shimmer 1.5s infinite;
}

@keyframes ss-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Sticky Add to Cart */
.ss-sticky-cart {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
    box-sizing: border-box;
    z-index: 2147483647;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s;
    visibility: hidden;
    opacity: 0;
    font-family: inherit;
}

.ss-sticky-cart--visible {
    bottom: 0;
    visibility: visible;
    opacity: 1;
}

.ss-sticky-cart__product {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.ss-sticky-cart__image-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f4f4f4;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ss-sticky-cart__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-sticky-cart__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ss-sticky-cart__atc {
    flex-shrink: 0;
    margin-left: 20px;
}

.ss-sticky-cart__button {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-align: center;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ss-sticky-cart__button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ss-sticky-cart__button:active {
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ss-sticky-cart {
        padding: 12px 20px;
    }

    .ss-sticky-cart__image-wrap {
        width: 42px;
        height: 42px;
    }

    .ss-sticky-cart__title {
        font-size: 14px;
    }

    .ss-sticky-cart__button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 540px) {
    .ss-sticky-cart__product {
        display: none;
        /* Hide product info to give button full width */
    }

    .ss-sticky-cart {
        justify-content: center;
        padding: 12px;
    }

    .ss-sticky-cart__atc {
        width: 100%;
        margin-left: 0;
    }

    .ss-sticky-cart__button {
        width: 100%;
        padding: 16px 20px;
    }
}

/* Sticky Cart Loader */
.ss-sticky-cart__button.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.ss-sticky-cart__button.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: ss-sticky-spin 0.8s ease-in-out infinite;
}

@keyframes ss-sticky-spin {
    to {
        transform: rotate(360deg);
    }
}

.ss-badge-star {
    font-size: 11px;
    color: #ffd700;
    margin-left: 2px;
    display: inline-block;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
}

/* ─────────────────────────────────────────────
   Bundle Bar Badges
   ───────────────────────────────────────────── */

/* Inline pill badge (shown inside rightSection) */
.ss-bundle-bar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    /* Colors overridden inline per merchant config */
    background-color: #008060;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* "Most Popular" full-width top banner badge */
.ss-bundle-bar__badge--banner,
.ss-bundle-bar__badge[data-banner="true"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 5px 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.5;
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    /* Colors overridden inline per merchant config */
    background-color: #202223;
    color: #ffffff;
}

/* SVG sticker + ribbon badges */
.ss-popular-badge {
    display: inline-flex;
    line-height: 0;
    pointer-events: none;
    z-index: 5;
}

.ss-popular-badge--sticker {
    position: absolute;
    top: -40px;
    right: 6px;
    transform: rotate(8deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.ss-popular-badge--ribbon {
    position: absolute;
    top: -2px;
    right: 12px;
    left: auto;
    transform: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.ss-popular-badge--sticker.ss-badge-align-start,
.ss-popular-badge--ribbon.ss-badge-align-start {
    left: 12px;
    right: auto;
}

.ss-popular-badge--sticker.ss-badge-align-center,
.ss-popular-badge--ribbon.ss-badge-align-center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.ss-popular-badge--sticker.ss-badge-align-start {
    transform: rotate(8deg);
}

.ss-popular-badge--sticker.ss-badge-align-center {
    transform: translateX(-50%) rotate(8deg);
}

.ss-popular-badge--sticker.ss-badge-align-end {
    left: auto;
    right: 6px;
    transform: rotate(8deg);
}

.ss-popular-badge--ribbon.ss-badge-align-end {
    left: auto;
    right: 12px;
    transform: none;
}

.ss-bundle-bar__off-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    background-color: #f97316;
    color: #ffffff;
    flex-shrink: 0;
}

.ss-bundle-bar__off-badge--under-price {
    position: static;
    margin-top: 6px;
}

/* BOGO savings badge */
.ss-bundle-bar__savings-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #008060;
    color: #ffffff;
    flex-shrink: 0;
}

.ss-bundle-bar__savings-badge--bogo {
    /* Slightly different accent for BOGO */
    background-color: #006e52;
}

/* ─────────────────────────────────────────────
   Progressive Gifts Section
   ───────────────────────────────────────────── */
.ss-progressive-gifts {
    width: 100%;
    box-sizing: border-box;
}

.ss-progressive-gifts-header {
    text-align: center;
}

.ss-progressive-gifts-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.ss-progressive-gifts-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.8;
}

.ss-progressive-gift-card {
    transition: all 0.3s ease;
    overflow: visible;
}

.ss-bundle [data-ss-powered-by="rabbit"],
.ss-bundle-builder-root [data-ss-powered-by="rabbit"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 20 !important;
    margin-top: 10px !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
    filter: none !important;
}

.ss-progressive-gift-labels-pill {
    pointer-events: none;
}

.ss-progressive-gift-card.locked {
    filter: grayscale(0.5);
    opacity: 0.8;
}

.ss-locked-overlay {
    pointer-events: none;
}

.ss-progressive-gift-title {
    margin: 0;
    word-break: break-word;
}

/* ─────────────────────────────────────────────
   Bar label (the <label> element wrapping each
   bar option) — must be a flex column so the
   full-width top banner stacks above content
   ───────────────────────────────────────────── */
.ss-bundle-bar > .ss-countdown-timer {
    width: 100% !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.ss-mix-match__progress-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.ss-mix-match__tier-badge {
    position: absolute;
    top: -12px;
    right: -8px;
    width: 48px;
    height: 48px;
    z-index: 2;
    pointer-events: none;
}

.ss-mix-match__tier-card {
    overflow: visible !important;
}

.ss-mix-match__tier-labels {
    overflow: visible !important;
    padding-top: 14px;
}

.ss-mix-match__progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #5d522e;
    margin-bottom: 8px;
    line-height: 1.35;
}

.ss-mix-match__progress-container {
    height: 10px;
    background: #f5f0e6;
    border-radius: 999px;
    overflow: hidden;
}

.ss-mix-match__progress-bar {
    display: block !important;
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.ss-mix-match__product-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ss-mix-match__products {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ss-mix-match__card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.ss-mix-match__card-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: unset !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
}

.ss-mix-match__card-image {
    flex-shrink: 0;
}

.ss-mix-match__card-actions {
    flex-shrink: 0;
}

.ss-mix-match__add-btn {
    flex-shrink: 0;
}

.ss-mix-match__variants-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ss-mix-match__tier-labels {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ss-mix-match__qty-picker {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    border: 1.5px solid var(--ss-accent-color, #111) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    background: #fff !important;
    height: 36px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ss-mix-match__qty-picker .ss-mix-match__qty-btn,
.ss-mix-match__qty-picker button {
    width: 34px !important;
    height: 36px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #111 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.ss-mix-match__qty-picker .ss-mix-match__qty-input,
.ss-mix-match__qty-picker input[type="number"],
.ss-mix-match__qty-picker input {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 36px !important;
    color: #111 !important;
    appearance: textfield !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

.ss-mix-match__qty-picker input[type="number"]::-webkit-outer-spin-button,
.ss-mix-match__qty-picker input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.ss-mix-match__qty-picker input:focus,
.ss-mix-match__qty-picker input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-left-color: #e5e7eb !important;
    border-right-color: #e5e7eb !important;
    background: #fff !important;
}

.ss-mix-match__variant-row:last-child {
    border-bottom: none !important;
}

.ss-mix-match__price-summary {
    width: 100%;
    box-sizing: border-box;
}

.ss-mix-match__price-summary .money {
    white-space: nowrap;
}

.ss-mix-match__atc-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
}

/* Mix & Match — mobile */
@media (max-width: 749px) {
    .ss-mix-match__header-row {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .ss-mix-match__tier-labels {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding-top: 16px !important;
        padding-bottom: 4px !important;
        scrollbar-width: thin;
    }

    .ss-mix-match__tier-card {
        flex: 0 0 auto !important;
        min-width: 96px !important;
        padding: 10px 8px !important;
        overflow: visible !important;
    }

    .ss-mix-match__card {
        align-items: flex-start !important;
        gap: 8px 10px !important;
        padding: 10px !important;
    }

    .ss-mix-match__card-info {
        flex: 1 1 calc(100% - 70px) !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .ss-mix-match__card-image {
        width: 52px !important;
        height: 52px !important;
    }

    .ss-mix-match__card-title {
        font-size: 13px !important;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .ss-mix-match__card-actions {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: fit-content;
        margin-left: auto !important;
        justify-content: flex-end;
    }

    .ss-mix-match__add-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .ss-mix-match__products--carousel .ss-mix-match__product-block {
        flex: 0 0 min(240px, 82vw) !important;
        max-width: 82vw !important;
    }

    .ss-mix-match__variant-row {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .ss-mix-match__atc-button {
        font-size: 15px !important;
        padding: 14px 16px !important;
        min-height: 48px;
    }
}

@media (max-width: 380px) {
    .ss-mix-match__card-image {
        width: 44px !important;
        height: 44px !important;
    }

    .ss-mix-match__card-title {
        font-size: 12px !important;
    }
}

/* ─────────────────────────────────────────────
   Bundle Builder Custom CSS (Build a Box)
   ───────────────────────────────────────────── */

.ss-builder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #202223;
}

.ss-builder-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 990px) {
    .ss-builder-grid {
        grid-template-columns: 7fr 5fr;
    }
}

.ss-builder-header {
    margin-bottom: 24px;
}

.ss-builder-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.ss-builder-subtitle {
    font-size: 16px;
    color: #6d7175;
    margin: 0;
}

/* Slot Visualization */
.ss-builder-slots-container {
    background: #f6f6f7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid #e1e3e5;
}

.ss-builder-slots {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ss-builder-slot {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ss-builder-slot.empty {
    border: 2px dashed #d1d3d5;
    background: #fff;
    color: #8c9196;
}

.ss-builder-slot.empty.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-color) 15%, transparent);
    background: color-mix(in srgb, var(--accent-color) 4%, #fff);
}

.ss-builder-slot.filled {
    border: 2px solid var(--accent-color);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ss-builder-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss-builder-slot-num {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ss-builder-slot-step-title {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-align: center;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ss-builder-slot-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 8px;
    text-align: center;
    padding: 2px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-builder-slot-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ss-builder-slot-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

.ss-builder-slot-remove svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Progress Tracker */
.ss-builder-progress-bar-wrap {
    margin-bottom: 24px;
}

.ss-builder-progress-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #202223;
}

.ss-builder-progress-track {
    height: 8px;
    background: #e1e3e5;
    border-radius: 4px;
    overflow: hidden;
}

.ss-builder-progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
}

/* Steps Navigation */
.ss-builder-steps-nav {
    display: flex;
    border-bottom: 1px solid #e1e3e5;
    margin-bottom: 24px;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.ss-builder-step-tab {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #6d7175;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ss-builder-step-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.ss-builder-step-tab.complete .ss-builder-step-badge {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.ss-builder-step-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #6d7175;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}

.ss-builder-step-tab.active .ss-builder-step-badge {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Product Cards Grid */
.ss-builder-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 600px) {
    .ss-builder-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ss-builder-product-card {
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ss-builder-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ss-builder-product-img-wrap {
    aspect-ratio: 1;
    background: #f9f9fb;
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
}

.ss-builder-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-builder-product-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ss-builder-product-details h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.ss-builder-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #6d7175;
    margin: 0 0 12px;
}

.ss-builder-product-select-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ss-builder-product-select-btn:hover {
    opacity: 0.9;
}

.ss-builder-product-select-btn:disabled {
    background: #e1e3e5 !important;
    color: #8c9196;
    cursor: not-allowed;
}

/* OOS Overlay */
.ss-builder-oos {
    opacity: 0.6;
}

.ss-builder-badge-oos {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Summary Card */
.ss-builder-summary-card {
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    position: sticky;
    top: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ss-builder-summary-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
}

.ss-builder-summary-list {
    display: flex;
    scrollbar-width: none;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ss-builder-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e1e3e5;
}

.ss-builder-summary-step {
    display: block;
    font-size: 10px;
    color: #6d7175;
    margin-top: 2px;
}

/* Pricing Grid */
.ss-builder-pricing {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ss-builder-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6d7175;
}

.ss-builder-discount-row {
    color: var(--accent-color);
    font-weight: 600;
}

.ss-builder-total-row {
    font-size: 18px;
    font-weight: 700;
    color: #202223;
    padding-top: 12px;
    border-top: 1px solid #e1e3e5;
    margin-top: 4px;
}

/* Checkout Button */
.ss-builder-checkout-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ss-builder-btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ss-builder-btn-submit:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.ss-builder-btn-submit:disabled {
    background: #e1e3e5 !important;
    color: #8c9196;
    cursor: not-allowed;
    transform: none;
}

.ss-builder-validation-msg {
    font-size: 12px;
    text-align: center;
    color: #6d7175;
}

/* ==========================================
   Storefront Widget for Bundle Builder
   ========================================== */
.ss-bb-widget-card {
    position: relative;
    display: block;
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    background-color: #ffffff;
    padding: 20px 20px 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-top: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-family: inherit;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ss-bb-widget-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #c9cccf;
}

.ss-bb-widget-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e91e63;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 12px;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    z-index: 2;
}

.ss-bb-widget-hero {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    background: #f6f6f7;
    border: 1px solid #e1e3e5;
    z-index: 1;
}

.ss-bb-widget-body {
    position: relative;
    z-index: 0;
}

.ss-bb-widget-body--with-hero {
    padding-right: 116px;
    min-height: 100px;
}

.ss-bb-widget-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 16px 0 4px 0 !important;
    line-height: 1.3;
    text-align: left;
}

.ss-bb-widget-subtitle {
    font-size: 13px;
    color: #6d7175;
    margin: 0 0 16px 0 !important;
    text-align: left;
}

.ss-bb-widget-divider {
    border-top: 1px solid #f1f1f2;
    margin-bottom: 16px;
    width: 100%;
}

.ss-bb-widget-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ss-bb-widget-step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ss-bb-widget-step-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.ss-bb-widget-step-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.ss-bb-widget-step-desc {
    font-size: 12px;
    color: #6d7175;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.ss-bb-widget-images-container {
    display: flex;
    align-items: center;
    position: relative;
    height: 36px;
    padding-left: 12px;
    flex-shrink: 0;
}

.ss-bb-widget-step-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    position: relative;
    margin-left: -12px;
    background: #ffffff;
}

.ss-bb-widget-step-thumb--0 {
    z-index: 3;
}

.ss-bb-widget-step-thumb--1 {
    z-index: 2;
}

.ss-bb-widget-step-thumb--2 {
    z-index: 1;
}

.ss-bb-widget-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background-color: #212121;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
}

.ss-bb-widget-card:hover .ss-bb-widget-btn {
    background-color: #000000;
}

.ss-bb-widget-btn:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .ss-bb-widget-hero {
        width: 72px;
        height: 72px;
        top: 12px;
        right: 12px;
    }

    .ss-bb-widget-body--with-hero {
        padding-right: 88px;
        min-height: 72px;
    }
}