/* Reset margins and paddings for text elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li {
    margin: 0;
    padding: 0;
}

/* Remove the flex display from container */
/* Layout specific styles now only apply to the elements that need them */

.BS_bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.BS_title-small {
    font-size: 14px;
}

.BS_title-medium {
    font-size: 16px;
}

.BS_title-large {
    font-size: 20px;
}

.BS_bundle-header-content {
    display: flex;
    flex-direction: column;
}

.BS_bundle-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Bundle Products Display Styles */
.BS_bundle-products-wrapper {
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

.BC_bundle-components-container{
    margin: 0 auto;
    max-width: 1200px;
    border: 1px solid #D7D7D7;
    margin-bottom: 16px;
}


.BS_variant-cart-container {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.BS_layout-vertical .BS_bundle-products-wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
}

.BS_bundle-products-wrapper::-webkit-scrollbar {
    height: 8px;
}

.BS_bundle-products-wrapper::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.BS_bundle-products-wrapper::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}


.BS_layout-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.BS_layout-vertical {
    display: flex;
    flex-direction: column;
}

/* Product Card Styles */
.BS_bundle-product {
    flex: 0 0 140px;
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

.BS_layout-vertical .BS_bundle-product {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    flex: 0 0 auto;
    gap: 20px;
}

.BS_bundle-product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    border-radius: 10px;
}

.BS_layout-vertical .BS_bundle-product-image {
    flex: 0 0 140px;
    height: auto;
    padding-top: 0;
}

.BS_bundle-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.BS_layout-vertical .BS_bundle-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.BS_bundle-product-info {
    padding: 10px 4px;
}

.BS_layout-vertical .BS_bundle-product-info {
    flex: 1;
}



.BS_bundle-product-price {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    margin-top: 6px;
}

.BS_layout-vertical .BS_plus-icon {
    align-self: center;
    margin: 8px 0;
}

/* Bundle Variant Selectors */
/* .BS_bundle-variant-container {
    margin-top: 24px;
    padding: 16px;
  } */


.BS_variant-options {
    margin-bottom: 16px;
}

.BS_variant-label {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.BS_variant-select{
    font-size: 13px;
    padding: 6px;
    border-radius: 4px;
}

.BS_variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.BS_variant-button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.BS_variant-button.disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
    background-color: #f5f5f5 !important;
    border-color: #ddd !important;
    text-decoration: line-through !important;
}

.BS_variant-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.BS_variant-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
}

.BS_variant-swatch.disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.BS_variant-swatch.disabled::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 1px;
    background-color: #ff0000;
    transform: rotate(-45deg);
    transform-origin: center;
    z-index: 1;
}

.BS_swatch-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    white-space: nowrap;
    display: none;
}

/* Bundle Summary Styles */
.BS_bundle-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    gap: 16px;
}

.BS_bundle-total {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.BS_bundle_total_wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 16px;
}

.BS_bundle_discount_wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.BS_layout-vertical .BS_bundle-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}



.BS_bundle-total-label {
    font-weight: 600;
    color: #111;
}

.BS_bundle-total-price {
    display: flex;
    gap: 12px;
    align-items: center;
}


.strike-price {
    text-decoration: line-through;
    font-size: 14px;
    color: #111;
    margin-left: 3px;
  }

.BS_compare-price {
    font-size: 14px;
    color: #111;
    text-decoration: line-through;
}

.BS_bundle-compare-price {
    font-size: 15px;
    color: #111;
}


.BS_bundle-add-button {
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.BS_layout-vertical .BS_bundle-add-button {
    width: 100%;
    justify-content: center;
    max-width: 300px;
}

.BS_bundle-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.BS_bundle-error {
    padding: 20px;
    text-align: center;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 8px;
}

/* Layout specific styles */
.BS_UI_wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.BS_UI_wrapper.BS_layout-horizontal {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

/* Bundle Products Display Styles */
.BS_bundle-products-wrapper {
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
    width: max-content;
    max-width: 80%;
    min-width: 55%;
}

.BS_layout-horizontal .BS_bundle-variant-container {
    flex: 0 0 25%;
    margin-top: 0;
    padding: 12px;
}

.BS_layout-horizontal .BS_bundle-summary {
    flex: 0 0 25%;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    border-top: none;
    gap: 12px;
}

.BS_layout-horizontal .BS_bundle-add-button {
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .BS_bundle-components-container {
        padding: 16px;
        margin: 0 auto;
    }

    .BS_bundle-header {
        margin-bottom: 20px;
    }

    .BS_bundle-products-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .BS_layout-vertical .BS_bundle-products-wrapper {
        margin: 0;
        padding: 0;
    }

    .BS_bundle-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-top: 20px;
        padding-top: 16px;
    }

    .BS_bundle-total {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .BS_bundle-add-button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .BS_bundle-product {
        flex: 0 0 100px;
    }

    .BS_plus-icon {
        font-size: 20px;
    }

    .BS_bundle-variant-container {
        padding: 12px;
    }

    .BS_UI_wrapper.BS_layout-horizontal {
        flex-direction: column;
        gap: 24px;
    }

    .BS_layout-horizontal .BS_bundle-products-wrapper {
        flex: none;
        max-width: 100%;
        margin: 0 -16px;
        padding: 0 16px;
    }

    .BS_layout-horizontal .BS_bundle-variant-container,
    .BS_layout-horizontal .BS_bundle-summary {
        flex: none;
    }

    .BS_layout-horizontal .BS_bundle-summary {
        border-top: 1px solid #eee;
        padding-top: 16px;
    }
}

/* Add to your existing CSS */
.BS_product-variant-selectors {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.BS_product-variant-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.BS_layout-vertical .BS_bundle-product {
    align-items: flex-start;
}

.BS_bundle-product .BS_variant-label {
    font-size: 12px;
}

.BS_bundle-product .BS_variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.BS_bundle-product .BS_variant-button {
    padding: 6px 10px;
    font-size: 12px;
}

.BS_bundle-product .BS_variant-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.BS_bundle-product .BS_variant-swatch {
    width: 24px;
    height: 24px;
}

/* Update the bundle-summary-container for the new layout */
.BS_bundle-summary-container {
    width: 50%;
}

@media (max-width: 768px) {
    .BS_bundle-summary-container {
        width: 100%;
    }
}

/* Option buttons styling */
.BS_button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.BS_option-button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
    min-width: 40px;
    text-align: center;
}

.BS_option-button:hover {
    border-color: #999;
}



/* Color swatches styling */
.BS_swatch-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.BS_color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.BS_color-swatch:hover {
    transform: scale(1.1);
}

/* Dropdown styling */
.BS_option-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

/* Option container */
.BS_option-container {
    margin-bottom: 12px;
}

.BS_option-name {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive styles for variant selectors */
@media screen and (max-width: 768px) {
    .BS_button-container {
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        flex-wrap: nowrap;
    }

    .BS_option-button {
        min-width: max-content;
        white-space: nowrap;
    }
}

/* Product link styling */
.BS_product-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}



/* Ensure image links don't have underline */
.BS_bundle-product-image .BS_product-link:hover {
    text-decoration: none;
}

/* additional styles for fixing UI */
.BS_bundle-block {
    margin-top: 40px;
}
.BS_layout-horizontal .BS_plus-icon {
    top: 60px;
    padding: 0;
}
.BS_bundle-product .BS_variant-button {
    color: #3e3e3e;
}

@media(max-width:991px){
    .BS_bundle-products.BS_layout-horizontal {
        gap: 14px!important;
    }
    .BS_layout-horizontal .BS_plus-icon {
        top: 45px;
    }
    .BS_bundle-product .BS_variant-button {
        font-size: 11px;
    }
}
@media(max-width:767px){
    .BS_bundle-product .BS_variant-button {
        font-size: 10px;
    }
}
