/**
 * Size Guide Modal Styles
 *
 * Simple modal styling following the fabric popup pattern.
 */

/* Modal overlay */
.ssc-sizeguide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ssc-sizeguide-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal content */
.ssc-sizeguide-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

/* Modal header */
.ssc-sizeguide-modal-header {
    padding: 20px 20px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.ssc-sizeguide-modal-header h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.ssc-sizeguide-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    color: #666;
    transition: color 0.2s ease;
}

.ssc-sizeguide-modal-close:hover {
    color: #333;
}

/* Modal body */
.ssc-sizeguide-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Size guide content */
.sestito-sizeguide-wrapper {
    text-align: center;
}

.sestito-sizeguide-wrapper h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.sestito-sizeguide-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 15px;
    margin: 20px 0;
}

.sestito-sizeguide-table th,
.sestito-sizeguide-table td {
    border: 1px solid #ddd;
    padding: 12px 10px;
}

.sestito-sizeguide-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.sestito-sizeguide-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sestito-sizeguide-table tbody tr:hover {
    background-color: #f0f0f0;
}

/* Size guide trigger button */
.ssc-sizeguide-trigger {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.ssc-sizeguide-trigger:hover {
    background-color: #005a87;
    color: white;
}

/* Body class when modal is open */
body.ssc-modal-open {
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
    .ssc-sizeguide-modal-content {
        width: 95vw;
        max-height: 95vh;
    }

    .ssc-sizeguide-modal-header,
    .ssc-sizeguide-modal-body {
        padding: 15px;
    }

    .sestito-sizeguide-table {
        font-size: 14px;
    }

    .sestito-sizeguide-table th,
    .sestito-sizeguide-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .ssc-sizeguide-modal-content {
        width: 98vw;
        max-height: 98vh;
    }

    .sestito-sizeguide-table {
        font-size: 12px;
    }

    .sestito-sizeguide-table th,
    .sestito-sizeguide-table td {
        padding: 6px 4px;
    }
}
