:root {
    /* Core color scheme - more aligned with Shopify defaults */
    --bundle-primary-color: #2c2c2c;
    --bundle-accent-color: #0066cc;
    --bundle-secondary-color: #6b7177;
    --bundle-light-color: #f8f9fa;
    --bundle-border-color: #2c2c2c;
    --bundle-bg-color: #ffffff;
    /* Customizable elements */
    --bundle-border-radius: 4px;
    --bundle-pill-radius: 20px;
    --bundle-transition: all 0.2s ease;
    --bundle-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --bundle-light-bg: #f9fafb;
    /* Status colors */
    --bundle-error-color: rgba(220, 53, 69, 0.08);
    --bundle-error-border: #de3618;
    --bundle-success-color: #2c852c;
    /* Text colors */
    --bundle-text-color: #333333;
    --bundle-text-light: #6b7177;

    /* Spacing system - more aligned with Shopify Dawn theme */
    --bundle-spacing-xs: 4px;
    --bundle-spacing-sm: 8px;
    --bundle-spacing-md: 16px;
    --bundle-spacing-lg: 24px;
    --bundle-spacing-xl: 32px;
    /* Font sizes - increased for better readability */
    --bundle-font-base: 16px;
    --bundle-font-large: 18px;
    --bundle-font-small: 15px;
    --bundle-font-xs: 14px;
}

/* General styles */
#bundlerAppProducts {
    padding: var(--bundle-spacing-md) 0;
    font-family: var(--font-body-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    color: var(--bundle-text-color);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    font-size: var(--bundle-font-base);
}

/* Improved header styling */
.bundle-header {
    margin-bottom: var(--bundle-spacing-lg);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--bundle-spacing-sm);
    font-size: 18px;
    color: var(--bundle-primary-color);
    padding-bottom: var(--bundle-spacing-sm);
    border-bottom: 1px solid var(--bundle-border-color);
}

.bundle-header svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--bundle-accent-color);
}

/* Layout types */
/* Grid layout */
.bundle-layout-grid {
    display: grid;
    grid-template-columns: repeat(var(--desktop-items-per-row, 4), 1fr);
    gap: var(--bundle-spacing-md);
    width: 100%;
    margin-bottom: 30px;
}


/* Fix for layout-slider to not stack products */
.bundle-layout-slider {
    position: relative;
    width: 100%;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.bundle-layout-slider .bundle-infinite-div {
    max-width: 230px;
}

.splide__arrows {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 104%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.splide__slide{
    padding: 0 30px !important;
}

/* Card styles */
.bundle-product-item {
    display: flex;
    flex-direction: column;
    border-radius: var(--bundle-border-radius);
    overflow: hidden;
    transition: var(--bundle-transition);
    /* background-color: var(--bundle-bg-color); */
    /* box-shadow: var(--bundle-shadow); */
    height: 100%;
    /* border: 1px solid #111; */
    width: 100%;
    max-width: 100%;
}

.bundle-product-item:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); */
}

/* Portrait style (with image) */
.bundle-card-portrait .bundle-product-item {
    display: flex;
    flex-direction: column;
}

.bundle-card-portrait .bundle-product-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--bundle-light-bg);
}

.bundle-card-portrait .bundle-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bundle-card-portrait .bundle-product-details {
    padding: var(--bundle-spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bundle-bg-color);
}

.bundle-card-portrait .bundle-product-title {
    font-weight: 500;
    margin-bottom:0px;
    font-size: 16px;
    line-height: 1.3;
    color: var(--bundle-primary-color);
}

.bundle-card-portrait .bundle-product-price {
    margin-top: auto;
    font-weight: 600;
    color: var(--bundle-primary-color);
    font-size: 16px;
}

.bundle-card-portrait .bundle-product-item:hover .bundle-product-image {
    transform: scale(1.03);
}

/* Portrait compact style (without image) */
.bundle-card-portrait_compact .bundle-product-item {
    /* padding: var(--bundle-spacing-md); */
    padding: 4px 6px;
}

.bundle-card-portrait_compact .bundle-product-image-container {
    display: none;
}

.bundle-card-portrait_compact .bundle-product-details {
    padding: 0;
}

.bundle-card-portrait_compact .bundle-product-title {
    font-weight: 500;
    /* margin-bottom: var(--bundle-spacing-sm); */
    font-size: 16px;
    line-height: 1.3;
}

.bundle-card-portrait_compact .bundle-product-price {
    font-weight: 600;
    color: var(--bundle-primary-color);
    font-size: 16px;
}


/* Card styling for pills display */
.bundle-display-pills.bundle-card-portrait .bundle-option-group,
.bundle-display-pills.bundle-card-portrait_compact .bundle-option-group {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bundle-display-pills.bundle-card-portrait .bundle-option-label,
.bundle-display-pills.bundle-card-portrait_compact .bundle-option-label {
    font-weight: 500;
    margin:0px;
    color: var(--bundle-primary-color);
    font-size: 16px;
}

.bundle-display-pills.bundle-card-portrait .bundle-pills-container,
.bundle-display-pills.bundle-card-portrait_compact .bundle-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bundle-spacing-xs);
    margin-top: auto;
}

/* Add specific styling for variant options in different card styles */
.bundle-card-portrait variant-infinite-select-options,
.bundle-card-portrait_compact variant-infinite-select-options {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Override layout spacing for card styles */
.bundle-layout-grid.bundle-card-portrait .bundle-infinite-div,
.bundle-layout-grid.bundle-card-portrait_compact .bundle-infinite-div {
    margin-bottom: 0;
}

/* Option display types */
/* Dropdown style */
.bundle-display-dropdown .bundle-options-container {
    display: flex;
    flex-direction: column;
    gap: var(--bundle-spacing-sm);
    margin-top: var(--bundle-spacing-md);
}

.bundle-infinite-div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin-bottom: var(--bundle-spacing-md);
    /* when slider layout, dont shrink */
    flex-shrink: 0;
    /* max-width: 200px; */
}

.bundle-infinite-div label {
    margin-bottom: var(--bundle-spacing-sm);
    font-size: 16px;
    font-weight: 500;
    color: var(--bundle-primary-color);
}

.bundle-infinite-div select {
    box-sizing: border-box;
    width: 100%;
    font-size: 15px;
    border-radius: var(--bundle-border-radius);
    border: 1px solid #2c2c2c;
    padding: 12px 30px 12px 12px;
    margin-bottom: var(--bundle-spacing-sm);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.293.293a1 1 0 011.414 1.414l-5 5a1 1 0 01-1.414 0l-5-5A1 1 0 01.293.293L5 5l4.293-4.707z' fill='%23333' fill-rule='nonzero'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    font-family: inherit;
    font-weight: normal;
    color: var(--bundle-text-color);
    transition: var(--bundle-transition);
    background-color: var(--bundle-bg-color);
    cursor: pointer;
}

.bundle-infinite-div select:hover {
    border-color: var(--bundle-accent-color);
}

.bundle-infinite-div select:focus {
    outline: none;
    border-color: var(--bundle-accent-color);
    box-shadow: 0 0 0 1px var(--bundle-accent-color);
}

/* Improved dropdown options */
.bundle-infinite-div select option {
    padding: 8px;
    font-size: 15px;
}

/* Pills style */
.bundle-display-pills .bundle-options-container {
    margin-top: var(--bundle-spacing-md);
}

.bundle-option-group {
    margin-bottom: var(--bundle-spacing-md);
}

.bundle-option-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    /* margin-bottom: var(--bundle-spacing-sm); */
    color: var(--bundle-primary-color);
    margin: 0px;
    min-height: 2.6em;
}

.bundle-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.bundle-pill {
    padding: 8px 16px;
    border: 1px solid #2c2c2c;
    border-radius: var(--bundle-pill-radius);
    cursor: pointer;
    transition: var(--bundle-transition);
    background-color: var(--bundle-light-color);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bundle-pill:hover {
    border-color: var(--bundle-accent-color);
}

.bundle-pill-selected {
    background-color: var(--bundle-accent-color);
    color: white;
    border-color: var(--bundle-accent-color);
}

/* Hide original labels in pill layout */
/* .bundle-display-pills label {
    display: none;
} */

/* Option group styling */
.bundle-option-group {
    margin-bottom: 16px;
}


/* Pill styling for unavailable but selected options */
.bundle-pill.bundle-pill-unavailable.bundle-pill-selected {
    opacity: 0.8;
    background-color: rgba(var(--bundle-accent-color), 0.5);
    color: white;
    border-color: var(--bundle-error-border);
    text-decoration: none;
    position: relative;
}

.bundle-pill.bundle-pill-unavailable.bundle-pill-selected::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.1) 10px,
            rgba(0, 0, 0, 0.2) 10px,
            rgba(0, 0, 0, 0.2) 20px);
    border-radius: var(--bundle-pill-radius);
    pointer-events: none;
}

/* Pill layout specific warning */
.pill-warning {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--bundle-error-border);
    padding: 4px 8px;
    background-color: var(--bundle-error-color);
    border-radius: var(--bundle-border-radius);
    border-left: 3px solid var(--bundle-error-border);
}

/* Pill styling for unavailable options */
.bundle-pill.bundle-pill-unavailable {
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: line-through;
    background-color: var(--bundle-light-bg);
    border-color: var(--bundle-border-color);
    position: relative;
}


.bundle-pill.bundle-pill-unavailable::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: var(--bundle-pill-radius);
}

/* Variant option selectors */
variant-infinite-select-options {
    display: block;
    width: 100%;
}


/* Improved unavailable styling */
.unavailable {
    opacity: 0.85;
    position: relative;
}

.unavailable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bundle-error-color);
    pointer-events: none;
    border-radius: var(--bundle-border-radius);
    border: 1px solid var(--bundle-error-border);
}

select option.unavailable {
    color: var(--bundle-text-light);
    font-style: italic;
    text-decoration: line-through !important;
}

.product-unavailable-warning {
    color: var(--bundle-error-border);
    font-size: 15px;
    margin-top: var(--bundle-spacing-xs);
    font-style: italic;
}

.variant-unavailable-message {
    color: var(--bundle-error-border) !important;
    padding: var(--bundle-spacing-sm);
    margin-bottom: var(--bundle-spacing-sm);
    background-color: var(--bundle-error-color);
    border-radius: var(--bundle-border-radius);
    font-size: 15px;
    text-align: center;
    border: 1px solid var(--bundle-error-border);
}

/* Responsive adjustments */
@media only screen and (max-width: 991px) {
    .bundle-layout-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bundle-slider-track .bundle-infinite-div {
        flex: 0 0 calc(100% / 3 - var(--bundle-spacing-md));
        max-width: calc(100% / 3 - var(--bundle-spacing-md));
    }
}

@media only screen and (max-width: 767px) {
    :root {
        --desktop-items-per-row: 2;
    }

    #bundlerAppProducts {
        padding: var(--bundle-spacing-sm);
    }

    .bundle-layout-grid {
        grid-template-columns: repeat(var(--mobile-items-per-row, 2), 1fr);
        gap: var(--bundle-spacing-sm);
    }

    .bundle-slider-track .bundle-infinite-div {
        flex: 0 0 calc(100% / var(--mobile-items-per-row, 2) - var(--bundle-spacing-sm));
        max-width: calc(100% / var(--mobile-items-per-row, 2) - var(--bundle-spacing-sm));
    }

    .bundle-slider-button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .bundle-header {
        font-size: 17px;
    }

    .bundle-pill {
        padding: 6px 12px;
        font-size: 15px;
    }

    .bundle-product-title {
        font-size: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .bundle-layout-grid {
        gap: var(--bundle-spacing-xs);
    }

    .bundle-infinite-div label,
    .bundle-option-label {
        font-size: 15px;
    }

    .bundle-infinite-div select {
        font-size: 15px;
    }

    .bundle-product-title {
        font-size: 15px;
    }

    variant-infinite-select-options {
        padding: var(--bundle-spacing-sm) 0;
    }

    .bundle-pill {
        padding: 6px 10px;
        font-size: 15px;
    }

    .bundle-slider-track .bundle-infinite-div {
        flex: 0 0 calc(100% / var(--mobile-items-per-row, 1) - var(--bundle-spacing-xs));
        max-width: calc(100% / var(--mobile-items-per-row, 1) - var(--bundle-spacing-xs));
    }
}

/* Fade in animation for smooth rendering */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for product images */
.bundle-product-image-container.loading {
    background-color: var(--bundle-light-bg);
    position: relative;
}

.bundle-product-image-container.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: imageSkeleton 1.5s infinite;
}

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

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

/* Ensure consistent product card spacing and alignment */
.bundle-product-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--bundle-spacing-md);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* First, define consistent base styling for all product titles */
.bundle-product-title {
    font-family: var(--font-heading-family, inherit);
    font-weight: 500;
    min-height: 2.6em;
    font-size: 16px;
    line-height: 1.3;
    color: var(--bundle-primary-color);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Reset any browser default styling for h3 elements used as product titles */
h3.bundle-product-title {
    padding: 0;
    font-size: 16px;
    margin: 0;
    /* Same as non-h3 title elements */
}


.bundle-product-price {
    margin-top: auto;
}

/* Additional/updated styles for highlighting only unavailable options */

/* Style for unavailable select element */
.selection-unavailable {
    border-color: var(--bundle-error-border) !important;
    background-color: rgba(255, 240, 240, 0.2);
}

/* Unavailable warning message for individual options */
.option-unavailable-warning {
    color: var(--bundle-error-border);
    font-size: 13px;
    margin-top: 4px;
    font-style: italic;
}

/* Variant-level unavailable message */
.variant-warning-container {
    margin-top: 8px;
}

.variant-unavailable-message {
    color: var(--bundle-error-border) !important;
    padding: 8px;
    margin-bottom: var(--bundle-spacing-sm);
    background-color: var(--bundle-error-color);
    border-radius: var(--bundle-border-radius);
    font-size: 13px;
    text-align: center;
    border: 1px solid var(--bundle-error-border);
}

/* Form-level error message */
.form-unavailable-message {
    color: var(--bundle-error-border) !important;
    margin: 12px 0;
    font-size: 14px;
    font-weight: 500;
}

/* Style for unavailable select options */
select option.unavailable {
    color: var(--bundle-text-light);
    font-style: italic;
    background-color: #f9f9f9;
    text-decoration: line-through !important;
}

/* Override previous styles that applied unavailable to the whole container */
.unavailable .bundle-product-image,
.unavailable .bundle-product-title,
.unavailable .bundle-product-price {
    opacity: 1;
    /* Reset any opacity styles */
}

.unavailable::after {
    display: none;
    /* Remove any overlays */
}

.bundle-variant-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 10px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bundle-variant-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.bundle-variant-card:hover {
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bundle-card-selected {
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.bundle-card-unavailable {
    opacity: 0.6;
    pointer-events: none;
    background-color: #f8f8f8;
}

.bundle-card-image-container {
    width: 100%;
    padding-bottom: 100%;
    /* Square aspect ratio */
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.bundle-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bundle-card-title {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Improve text overflow handling in card titles */
.bundle-card-title {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}

/* Add a nice hover effect that shows the tooltip is available */
.bundle-variant-card:hover .bundle-card-title {
    color: #4a90e2;
    text-decoration: underline dotted;
}

/* You can also add this for better mobile support */
@media (hover: none) {
    .bundle-card-title {
        /* Allow two lines of text on touch devices */
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.4em;
        /* 2 lines × 1.2 line-height */
    }
}

/* Variant layout styles */
.bundle-variant-cards-container.variant-layout-grid {
    display: grid;
    grid-template-columns: repeat(var(--desktop-variant-items-per-row, 3), minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.bundle-variant-cards-container.variant-layout-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin: 10px 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    /* For scrollbar space */
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.bundle-variant-cards-container.variant-layout-slider .bundle-variant-card {
    flex: 0 0 auto;
    width: calc(100% / var(--desktop-variant-items-per-row, 3) - 8px);
    min-width: 100px;
    max-width: 150px;
}

/* Variant Splide Carousel */
.variant-splide {
    margin: 10px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.variant-splide .splide__arrow {
    background: rgba(255, 255, 255, 0.8);
    width: 28px;
    height: 28px;
}

.variant-splide .splide__arrow svg {
    width: 12px;
    height: 12px;
}

.variant-splide .splide__track {
    width: 100%;
    overflow: hidden;
}

/* Custom scrollbar for better visibility */
.bundle-variant-cards-container.variant-layout-slider::-webkit-scrollbar {
    height: 4px;
}

.bundle-variant-cards-container.variant-layout-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.bundle-variant-cards-container.variant-layout-slider::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* Style for nested slider in grid */
.bundle-layout-grid .variant-layout-slider {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Responsive styles for variant layouts */
@media only screen and (max-width: 767px) {
    .bundle-variant-cards-container.variant-layout-grid {
        grid-template-columns: repeat(var(--mobile-variant-items-per-row, 2), minmax(0, 1fr));
    }

    .bundle-variant-cards-container.variant-layout-slider .bundle-variant-card {
        width: calc(100% / var(--mobile-variant-items-per-row, 2) - 8px);
    }
}

/* Fix for slider layouts within grid parent */
.bundle-layout-grid>.bundle-infinite-div,
.bundle-layout-grid>.modern-lay-prod {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Ensure all variant containers respect parent width */
.bundle-product-details {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Properly contain variant card containers */
.bundle-variant-cards-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Adjust slider layout to respect parent boundaries */
.bundle-variant-cards-container.variant-layout-slider {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    padding-bottom: 5px;
    margin: 0;
}

/* Style for nested slider in grid */
.bundle-layout-grid .variant-layout-slider {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Make splide container respect parent width */
.variant-splide {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    box-sizing: border-box;
}

.variant-splide .splide__track {
    width: 100%;
    overflow: hidden;
}

/* Custom scrollbar for better visibility */
.bundle-variant-cards-container.variant-layout-slider::-webkit-scrollbar {
    height: 4px;
}

.bundle-variant-cards-container.variant-layout-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.bundle-variant-cards-container.variant-layout-slider::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* Ensure the parent container properly contains the slider */
.bundle-product-item {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.bundle-editor-notice {
    border: 1px dashed #c4cdd5;
    background-color: #f9fafb;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.4;
}

.bundle-editor-notice p {
    margin: 0;
}

.bundle-editor-notice .notice-subtext {
    font-size: 12px;
    color: #637381;
    margin-top: 4px;
    font-style: italic;
}


/* Eye icon overlay for card display */
.bundle-variant-card { position: relative; }
.bundle-variant-card .bundle-view-icon {
    position: absolute;
    top: 1%;
    right: 1%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: none;
    padding: 8px;
    z-index: 999;
}
.bundle-variant-card:hover .bundle-view-icon { display: flex; opacity: 1; visibility: visible; pointer-events: auto; }
.bundle-variant-card .bundle-view-icon svg { width: 16px; height: 16px; fill: #111; }