﻿:root {
    --accent: #2b6df6;
    --border: #e6e9ef;
    --bg: #f9fafc;
}

.open-btn {
    width: 100%;
    display: inline-block;
    color: var(--accent);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--accent);
}
    .open-btn:hover {
        background-color: var(--accent);
        color: #fff;
    }
    #size-modal-toggle {
        display: none;
    }

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#size-modal-toggle:checked ~ .modal-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.modal-layer {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.modal {
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 720px;
    z-index: 10;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

#size-modal-toggle:checked ~ .modal-backdrop .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-header,
.modal-footer {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer {
    border-top: 1px solid var(--border);
    border-bottom: none;
}

.close-btn,
.close-label {
    background: #f3f4f6;
    border: 1px solid #e6e8ee;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.modal-body {
    padding: 16px;
    max-height: 60vh;
    overflow: auto;
}

.sizes-table {
    width: 100%;
    border-collapse: collapse;
}

    .sizes-table th,
    .sizes-table td {
        border-bottom: 1px solid var(--border);
        padding: 8px;
        text-align: center;
    }

    .sizes-table tbody tr:nth-child(even) {
        background: #fafafa;
    }

.badge {
    background: #eef3ff;
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.empty {
    padding: 12px;
    text-align: center;
    color: #777;
}
