/* ================================================================
   Jojo Scrubs Size Chart — public/style.css
   Black & white, clean, matches WooCommerce product page aesthetic
   ================================================================ */

/* ── Wrapper ── */
.jojo-sc-wrap {
    margin: 20px 0 4px;
    font-family: inherit;
}

.jojo-sc-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 10px;
}

/* ── Preview table container ── */
.jojo-sc-preview-outer {
    position: relative;
    overflow: hidden;
    border: 1.5px solid #1a1a1a;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
}

/* Right-edge fade hint on preview */
.jojo-sc-fade {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.92));
    pointer-events: none;
}

/* ── Shared table styles ── */
.jojo-sc-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    color: #1a1a1a;
    background: #fff;
}

.jojo-sc-table thead tr {
    background: #1a1a1a;
    color: #fff;
}

.jojo-sc-table thead th {
    padding: 9px 16px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: center;
    border: none;
    white-space: nowrap;
}

.jojo-sc-table thead th.jojo-sc-th-label {
    text-align: left;
}

.jojo-sc-table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.jojo-sc-table tbody tr:nth-child(odd) {
    background: #fff;
}

.jojo-sc-table tbody td {
    padding: 8px 16px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    white-space: nowrap;
    font-size: 13px;
}

.jojo-sc-table tbody td.jojo-sc-row-label {
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: #1a1a1a;
    min-width: 70px;
}

/* ── "View full chart" button ── */
.jojo-sc-btn-full {
    margin-top: 10px;
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.jojo-sc-btn-full:hover {
    background: #fff;
    color: #1a1a1a;
}

/* ── Modal Overlay ── */
.jojo-sc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.jojo-sc-overlay.is-open {
    display: flex;
}

/* ── Modal Box ── */
.jojo-sc-modal {
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    animation: jojo-sc-in 0.18s ease;
}

@keyframes jojo-sc-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Modal Header ── */
.jojo-sc-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    padding: 14px 20px;
    border-radius: 3px 3px 0 0;
    flex-shrink: 0;
}

.jojo-sc-modal-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jojo-sc-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.jojo-sc-close:hover {
    opacity: 1;
}

/* ── Modal Body ── */
.jojo-sc-modal-body {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.jojo-sc-table-scroll {
    overflow-x: auto;
    border: 1.5px solid #1a1a1a;
    border-radius: 4px;
}

.jojo-sc-note {
    font-size: 11px;
    color: #888;
    margin: 10px 0 0;
    letter-spacing: 0.02em;
}

/* ── Responsive ── */
@media ( max-width: 480px ) {
    .jojo-sc-table thead th,
    .jojo-sc-table tbody td {
        padding: 7px 10px;
        font-size: 12px;
    }

    .jojo-sc-modal-body {
        padding: 14px;
    }
}
