body:not(.bedset-bundle) .composite_component.single .component_inner .component_selections .composited_product_title_wrapper,
body:not(.bedset-bundle) .composite_component.single .component_inner .component_selections .component_title_wrapper,
body:not(.bedset-bundle) .bedSetHeading,
body.bedset-bundle .composite_component.single > .component_title_wrapper {
    display: none;
}

body.bedset-bundle .bedSetHeading {
    display: block;
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: #073B4A;
    margin: .5rem 0 1.5rem 0;
}

body.bedset-bundle .composite_component.single .component_inner .component_selections .component_title_wrapper {
    margin-bottom: 0;
}

body.bedset-bundle .composite_component.single .component_inner .component_selections .component_title_wrapper .component-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: #073B4A;
    margin-bottom: .75rem;
}

/*.bedset-bundle .component_data .attribute_options .label label {*/
/*    position: relative;*/
/*    left: 0;*/
/*    top: 0;*/
/*}*/

.bedset-bundle .ecom-componenent-title__index,
.bedset-bundle .ecom-alert-text,
.bedset-bundle .composite_availability{
    display: none;
}

.bedset-bundle .component_data .component_title-h2 {
    font-family: "Poppins", sans-serif;
}

.bedset-bundle .product-type-composite table.variations tbody tr .value select {
    text-align-last: start !important;
    text-align: start !important;
}

.bedset-bundle .composite_component:not(.last) {
    padding-bottom: 10px;
    border-bottom: 1px solid #DEE7EC;
}

.bedset-bundle .woocommerce-variation-price {
    display: none;
}

.bedset-bundle .component .cart .variations td.label {
    padding-top: 0;
}

@media (min-width: 767px) {
    .bedset-bundle .composited_product_images {
        display: block;
    }

    .bedset-bundle .composited_product_image img {
        min-width: 140px;
        max-width: 140px;
        height: 140px !important;
        border-radius: 8px;
        object-fit: cover;
    }

    .bedset-bundle .component .composited_product_images, .woocommerce-page div.product div.composited_product_images {
        width: 40%;
    }

    .bedset-bundle .component .composited_product_images, .woocommerce-page div.product div.composited_product_images .details {
        width: 60% !important;
    }
}

/* Size Guide Popup */
.size-guide-container {
    position: relative;
    line-height: 1;
}

.sizeGuide {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #4F737D;
    font-size: 12px;
    text-decoration: underline;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.size-guide-popup {
    position: fixed;
    top: 108px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.size-guide-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.size-guide-popup .size-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.size-guide-popup .size-guide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 1.25rem;
    overflow-y: auto;
    z-index: 999;
}

.size-guide-popup .size-guide-content .size-guide-content-header {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: .75rem;
}

.size-guide-content > div p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #073B4A;
    margin: 0;
}

.size-guide-close {
    font-size: 26px;
    cursor: pointer;
    color: #404851;
    transition: color 0.3s ease;
    line-height: 1;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-guide-close:hover {
    color: #333;
}

.size-guide-content p {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
}

.size-guide-content .size-guide-content-header + p {
    font-size: 1rem;
}

.size-guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2.5rem;
    margin-bottom: 0;
    border: 1px solid #BBCFDB;
}

.size-guide-container .size-guide-popup .size-guide-content table th,
.size-guide-container .size-guide-popup .size-guide-content table td {
    display: table-cell;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #BBCFDB;
    text-align: center;
    color: #073B4A;
    font-family: 'Poppins', sans-serif;
}

.size-guide-content th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.size-guide-content tr:hover {
    background-color: #f8f9fa;
}

/* Desktop styles */
@media (min-width: 769px) {
    .size-guide-popup {
        top: 0;
    }

    .size-guide-popup .size-guide-content {
        width: 90%;
        height: auto;
        max-width: 850px;
        max-height: 80vh;
        border-radius: 1rem;
        padding: 40px;
        box-shadow: 0 8px 16px 0 rgba(5, 19, 66, 0.08),
                    0 2px 5px 0 rgba(5, 19, 66, 0.1),
                    0 0 1px 0 rgba(5, 19, 66, 0.32) inset;

    }

    .size-guide-popup .size-guide-content {
        padding: 2.5rem
    }

    .size-guide-popup .size-guide-content .size-guide-content-header {
        flex-direction: row;
        align-items: center;
    }

    .size-guide-content > div p {
        line-height: 1;
    }

    .size-guide-popup .size-guide-content th,
    .size-guide-popup .size-guide-content td {
        padding: 12px;
        font-size: inherit;
    }
}