/* Shred Finder — Size guide (/sizes): height box, big size answer and kids' wheel pills
   on the left, chart + tips on the right (pills share .pill-choice from favourites.css) */

.sizes-page {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
        'intro  intro'
        'height chart'
        'result chart'
        'kids   tips'
        'go     tips'
        '.      tips';
    gap: 0 32px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.sizes-page > .sizes-intro  { grid-area: intro; }
.sizes-page > .height-picker { grid-area: height; }
.sizes-page > .size-result  { grid-area: result; }
.sizes-page > .size-chart   { grid-area: chart; }
.sizes-page > .size-tips    { grid-area: tips; }
.sizes-page > .kids-shop    { grid-area: kids; }
.sizes-page > .kids-go      { grid-area: go; }

@media (max-width: 820px) {
    .sizes-page {
        grid-template-columns: 1fr;
        grid-template-areas: 'intro' 'height' 'result' 'kids' 'go' 'chart' 'tips';
    }
}

.height-picker {
    max-width: 360px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 2px solid rgba(198, 244, 50, 0.45);
    background: var(--sf-surface);
    animation: sf-pop var(--sf-slow) var(--sf-ease) 80ms both;
}

.height-picker .zDialog-container,
.kids-shop .zDialog-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.height-picker .zDialog-container > h3 {
    display: none;
}

.height-picker .zDialog-feedback:empty,
.kids-shop .zDialog-feedback:empty {
    display: none;
}

.height-picker .zForm-control {
    height: 60px;
    font-size: 1.6rem !important;
    font-weight: 700;
    border-radius: 16px !important;
    padding: 0 18px;
}

/* the answer: one huge size, lime, pops in on every change */
.size-result {
    margin: 22px 0;
    padding: 22px 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(198, 244, 50, 0.18), transparent 50%),
        var(--sf-surface-2);
    border: 1px solid var(--sf-line);
    animation: sf-pop 260ms var(--sf-bounce) both;
}

.size-lead p {
    margin: 0;
    color: var(--sf-muted);
    font-weight: 600;
}

.size-big p {
    margin: 2px 0 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 9vw, 4.2rem);
    line-height: 1;
    text-transform: uppercase;
    color: var(--sf-lime);
}

.size-advice p {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--sf-text);
}

.size-band p {
    margin: 0;
    color: var(--sf-muted);
    font-size: 0.92rem;
}

.size-chart {
    margin-top: 0;
}

.size-chart .zTable-container h4,
.size-tips h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--sf-orange);
}

.size-chart .zTable {
    color: var(--sf-text);
    background: var(--sf-surface) !important;
    border-radius: 14px;
    overflow: hidden;
}

.size-chart .zTable th,
.size-chart .zTable td {
    background: transparent !important;
    color: var(--sf-text) !important;
    border-color: var(--sf-line) !important;
    padding: 10px 14px !important;
}

.size-chart .zTable thead th {
    color: var(--sf-muted) !important;
}

.size-tips {
    margin: 26px 0 12px;
    padding: 20px 24px;
    border-radius: 18px;
    border: 1px solid var(--sf-line);
    background: var(--sf-surface);
}

.size-tips h3 {
    margin: 0 0 10px;
}

.size-tips li {
    margin: 6px 0;
}

.size-tips li::marker {
    color: var(--sf-lime);
}

.kids-shop {
    margin: 16px 0 30px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 2px solid rgba(255, 122, 26, 0.45);
    background: var(--sf-surface);
}

.kids-shop .zDialog-container > h3 {
    display: none;
}

/* no wheel is "picked" here — tapping one is the action, so drop the default glow */
.kids-shop.pill-choice .zForm-check-group:not(:has(:checked)) .zForm-check:nth-child(2) .zForm-check-label {
    color: var(--sf-text);
    background: var(--sf-surface-2);
    border-color: var(--sf-orange);
    box-shadow: none;
}

.kids-shop.pill-choice .zForm-check-label {
    border-color: var(--sf-orange);
}

.kids-go .help-btn {
    margin: -14px 0 30px;
    padding: 11px 20px !important;
    border-radius: 999px !important;
    font-weight: 700;
    color: #10160f !important;
    background: var(--sf-lime) !important;
    border: 2px solid var(--sf-lime) !important;
    animation: sf-pop 260ms var(--sf-bounce) both;
}

/* a live repaint (zDelta $Sizes.Answer) drops the fresh block INSIDE the old one —
   the inner copy must not draw a second card */
.size-result .size-result {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    animation: none;
}
