/* Scoped to size charts; inherits the storefront's day/night palette. */
.woocommerce div.product .arena-size-charts {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 24px;
    border: 1px solid var(--arena5-border, #9caec8);
    border-radius: 14px;
    background: var(--arena5-panel, #f8faff);
    color: var(--arena5-text, #15243b);
    overflow: hidden;
    text-align: start;
}
.arena-size-charts__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    box-sizing: border-box;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    background: var(--arena5-panel-soft, #e8eef8);
}
.arena-size-charts__summary::-webkit-details-marker { display: none; }
.arena-size-charts__summary::after {
    content: '+';
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-inline-start: auto;
    border: 1px solid var(--arena5-border, #9caec8);
    border-radius: 50%;
    color: var(--arena5-text, #15243b);
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
}
.arena-size-charts[open] > summary::after { content: '−'; }
.arena-size-charts__summary:focus-visible,
.arena-size-charts__scroll:focus-visible {
    outline: 3px solid var(--arena5-blue, #1645ff);
    outline-offset: -3px;
}
.arena-size-charts__title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.arena-size-charts__unit {
    padding: 3px 9px;
    border: 1px solid var(--arena5-border, #9caec8);
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
}
.arena-size-charts__body { padding: 0 20px 20px; min-width: 0; }
.arena-size-charts .arena-size-charts__intro { margin: 18px 0 8px; font-size: 14px; line-height: 1.6; }
.arena-size-charts__scroll { max-width: 100%; overflow-x: auto; margin: 16px 0; overscroll-behavior-x: contain; }
.woocommerce div.product .arena-size-charts__table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 0;
    table-layout: auto;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    border: 0;
    color: inherit;
}
.arena-size-charts__table caption { text-align: start; font-weight: 700; padding: 0 0 10px; color: inherit; }
.woocommerce div.product .arena-size-charts__table :is(th, td) {
    padding: 11px 12px;
    text-align: center;
    white-space: nowrap;
    min-width: 48px;
    border: 0;
    border-bottom: 1px solid var(--arena5-border, #9caec8);
    line-height: 1.4;
}
.woocommerce div.product .arena-size-charts__table thead th { background: #25354e; color: #fff; font-weight: 700; }
.woocommerce div.product .arena-size-charts__table tbody tr:nth-child(even) { background: var(--arena5-panel-soft, #e8eef8); }
.woocommerce div.product .arena-size-charts__table tr > :first-child { text-align: start; min-width: 96px; }
.woocommerce div.product .arena-size-charts__table tbody th { background: var(--arena5-panel-soft, #e8eef8); color: inherit; font-weight: 600; }
.arena-size-charts .arena-size-charts__how { margin: 16px 0 8px; font-size: 13px; line-height: 1.6; }
.arena-size-charts .arena-size-charts__note { margin: 0; font-size: 12px; line-height: 1.65; color: var(--arena5-muted, #42536d); }
@media (max-width: 600px) {
    .arena-size-charts__summary { padding: 14px; gap: 8px; }
    .arena-size-charts__title { font-size: 16px; }
    .arena-size-charts__body { padding: 0 12px 16px; }
    .woocommerce div.product .arena-size-charts__table :is(th, td) { padding: 10px; }
    .woocommerce div.product .arena-size-charts__table tr > :first-child {
        position: sticky;
        inset-inline-start: 0;
        z-index: 1;
        min-width: 84px;
    }
}
