/* Модальное окно - центрирование */
.size-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.size-guide-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 0 auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Контент внутри модального окна */
.size-guide-modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Таблица - центрирование и стили */
.size-guide-table {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0;
    border-collapse: collapse;
    text-align: center;
}

.size-guide-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    font-weight: 600;
    color: #2c3e50;
}

.size-guide-table td {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    color: #495057;
}

/* Заголовок в модальном окне */
.size-guide-modal-body h3 {
    text-align: center;
    margin: 0 0 20px;
    color: #2c3e50;
    width: 100%;
}

/* Кнопка закрытия */
.size-guide-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #777;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

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