/**
 * BFD Single Product Functions - Size Chart Styles
 * 
 * @package BFDSingleProductFunctions
 */

.close-popup:hover {
    background-color: transparent;
}

.size-chart-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 80px;
}

.size-chart-content {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.size-chart-image-dimensions {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(50% 50% at 50% 50%, #FFF 0%, #EEE 100%);
    padding: 30px;
    border-radius: 12px;
}

.product-image-with-dimensions {
    flex: 1;
}

.product-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.main-product-image {
    display: block;
    max-width: 100%;
    height: auto;
}

img.main-product-image {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    height: 500px;
}

.dimension-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

img.dimension-svg {
    height: 100%;
    width: 98%;
}

.dimension-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dimension-label {
    position: absolute;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
    color: #000c5e;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
}

.dimension-label.height {
    top: 50%;
}

.dimension-label.diameter {
    top: 100%;
    left: 46%;
}

.dimension-label.circumference {
    top: 50%;
    left: 90%;
}

.size-chart-content a {
    color: #000C5E;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    text-decoration-line: underline;
}

h2.size-chart-heading {
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 116%;
    letter-spacing: -0.32px;
    margin: 0px;
}

p.size-chart-subheading {
    margin: 0px !important;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}

.size-chart-dimensions {
    margin-bottom: 0;
}

.size-guide-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1024px) {
    .size-chart-container {
        flex-direction: column-reverse;
        gap: 40px;
    }
    
    .size-chart-image-dimensions {
        width: 100%;
    }

    .product-image-with-dimensions {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    img.main-product-image {
        height: 300px;
    }

    .dimension-label.height {
        top: 55%;
    }

    .dimension-label.diameter {
        top: 100%;
        left: 42%;
    }

    .dimension-label.circumference {
        top: 53%;
        left: 79%;
    }

    .size-chart-img-wrapper img {
        width: 50%;
        object-fit: contain;
    }
}
