/* =============================================================
   WooCommerce Size Chart – Front-end Styles
   File: assets/css/size-chart.css
   ============================================================= */

/* ── Size Chart Button ───────────────────────────────────────── */
.wsc-button-wrap {
    margin-bottom: 14px;
}

.wsc-size-chart-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    color: #fff;
    background: #333;
    border: 2px solid #333;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.wsc-size-chart-btn:hover,
.wsc-size-chart-btn:focus {
    background: #333;
    color: #fff;
    outline: none;
}

.wsc-size-chart-btn svg {
    flex-shrink: 0;
}

/* ── Overlay ─────────────────────────────────────────────────── */
#wsc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: wscFadeIn .2s ease;
}

#wsc-overlay.wsc-hidden {
    display: none;
}

@keyframes wscFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal box ───────────────────────────────────────────────── */
#wsc-modal {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: wscSlideUp .22s ease;
}

@keyframes wscSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.wsc-modal-title {
    margin: 0;
    padding: 18px 24px 14px;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    color: #222;
}

.wsc-modal-img-wrap {
    overflow: auto;
    padding: 20px 24px 24px;
    text-align: center;
}

.wsc-modal-img-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* ── Close button ────────────────────────────────────────────── */
#wsc-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    line-height: 1;
    border-radius: 50%;
    transition: background .15s, color .15s;
}

#wsc-close-btn:hover,
#wsc-close-btn:focus {
    background: #f0f0f0;
    color: #111;
    outline: none;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .wsc-size-chart-btn {
        width: 100%;
        justify-content: center;
    }

    #wsc-modal {
        border-radius: 6px;
    }

    .wsc-modal-title {
        font-size: 15px;
        padding: 14px 16px 12px;
    }

    .wsc-modal-img-wrap {
        padding: 14px 16px 18px;
    }
}
