.measuring-guide-container {
        max-width: 800px;
        margin: 20px auto;
        /*padding: 0 20px;*/
    }
 .measuring-guide-container h1, .measuring-guide-container h2 {
        text-align: center;
        color: #111;
    }
    .measuring-guide-intro {
        text-align: center;
        margin-bottom: 40px;
    }
    .measurement-section {
        /*margin-bottom: 40px;*/
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
    }
    .measurement-section h3 {
        margin-top: 0;
        border-bottom: 1px solid #ccc;
        padding-bottom: 10px;
        color: #111;
        /* FIX 1: Reduced space between heading and video */
        margin-bottom: 20px;
    }
    .measurement-content {
        display: flex;
        flex-direction: column; /* Stacks items vertically on mobile */
        gap: 20px;
    }
    .measuring-guide-video-container iframe {
        width: 100%;
        height: auto; /* Use aspect-ratio for responsive video */
        aspect-ratio: 16 / 9;
        display: block; /* Removes extra space below iframe */
        border: none;
        border-radius: 8px;
    }
    .instructions ul {
        /* FIX 2: Removed all default list padding/margin */
        list-style-type: none;
        padding-left: 0 !important;
        margin-top: 0;
        margin-bottom: 0;
    }
    .instructions li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 12px;
    }
    .instructions li:before {
        content: '✓';
        color: #2ecc71;
        margin-right: 12px;
        font-weight: bold;
        line-height: 1.6; /* Align checkmark with text */
    }

    /* FIX 3: Desktop layout adjustments */
    @media (min-width: 768px) {
        .measurement-content {
            flex-direction: row; /* Side-by-side on screens wider than 768px */
            align-items: flex-start;
        }
        .measuring-guide-video-container {
            flex: 1 1 55%; /* Give video a bit more space */
        }
        .instructions {
            flex: 1 1 45%;
        }
    }
    
    
    /*
 * Styles for aligning measuring guide links next to fit guide on the product page
 */
.et-pro-summary-content .sizing-guide-open,
.et-pro-summary-content .custom-guide-link-wrapper {
    display: inline-block;
    vertical-align: top;
    padding-left: 15px;
    margin-right: 15px; /* Adds space to the right of each link */
    margin-bottom: 15px; /* Adds space below the links, before the measurement form */
    
}

/* Add this new rule for images */
.measuring-guide-video-container img {
    width: 100%; /* Makes the image scale to fit the container */
    height: auto; /* Maintains the image's aspect ratio */
    display: block; /* Prevents extra space below the image */
    border-radius: 8px; /* Matches the rounded corners of the videos */
}
    
/* this is different pop-up container*/

/*
 * ===================================================================
 * Final Styles for the ISOLATED Baron Boutique Measuring Guide Popup
 *
 * Based on the correct HTML structure, this version applies the
 * background and padding to the main container, which correctly
 * positions the close button inside the visible white area.
 * ===================================================================
 */

/* 
 * STEP 1: Style the main popup container.
 * This is now the element that gets the white background and acts as the
 * positioning parent for the close button.
 */
.baron-guide-popup-wrapper.popup-container {
    position: relative; /* Establishes the positioning context */
    background-color: #ffffff; /* The all-important white background */
    padding: 30px; /* Comfortable spacing for the content */
    
    /* Optional but recommended: keeps the popup from being too wide */
    max-width: 800px; 
    margin: 40px auto; /* Centers the popup on the screen */
    box-sizing: border-box;
}

/* 
 * STEP 2: Style the close button.
 * This rule now works correctly because its parent has the white background.
 */
.baron-guide-popup-wrapper button.mfp-close {
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 1050; /* Ensures it's on top of all content */
    
    /* Override any conflicting theme styles */
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 40px;
    font-size: 30px;
    text-align: center;
    color: #333;
    background: transparent;
    opacity: 0.65;
    transition: all 0.2s ease-in-out;
}

/* Style the hover state for our button */
.baron-guide-popup-wrapper button.mfp-close:hover {
    color: #000;
    opacity: 1;
}

/* 
 * STEP 3: Remove conflicting styles from the child element.
 * We no longer need this child to have its own background or padding.
 */
.baron-guide-popup-wrapper .theme-popup-content {
    background: none;
    padding: 0;
}

