/* Playing gear and Club Shop: products, previews, order summaries and shop states. */
.bank {
    display: flex;
    gap: 20px;
    margin: 18px 0 12px;
    padding: 16px;
    background: #fffaf6;
    border: 1px solid #ddd2c6;
    border-radius: 10px;
}

.bank b {
    color: #a51419;
}

.bank span {
    font-size: 14px;
}

.card button {
    width: 100%;
}

.emailnote {
    color: #686b72;
    text-align: left;
}

main#order > form.card {
    display: flex;
    flex-direction: column;
}

main#order > form.card .bank {
    margin-top: 24px;
    margin-bottom: 12px;
}

main#order > form.card #poloOptions:not([hidden]) + .bank {
    margin-top: 24px;
}

/* Shirt previews */
.shirts {
    min-height: 245px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
    padding: 25px 15px;
}

.shirt-preview {
    position: relative;
    width: 145px;
    height: 185px;
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / 45%));
}

.shirt-body {
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 26px;
    width: 93px;
    height: 164px;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            #fff 0%,
            #f5f5f5 48%,
            #fff 100%
        );
    clip-path: polygon(
        10% 0,
        35% 7%,
        65% 7%,
        90% 0,
        100% 100%,
        0 100%
    );
}

.shirt-sleeve {
    position: absolute;
    z-index: 1;
    top: 20px;
    width: 54px;
    height: 68px;
    background: #fff;
    border-bottom: 3px solid #d0d0d0;
}

.shirt-sleeve-left {
    left: 2px;
    clip-path: polygon(
        50% 0,
        100% 20%,
        82% 100%,
        0 72%,
        20% 20%
    );
}

.shirt-sleeve-right {
    right: 2px;
    clip-path: polygon(
        50% 0,
        80% 20%,
        100% 72%,
        18% 100%,
        0 20%
    );
}

.shirt-collar {
    position: absolute;
    z-index: 6;
    top: 0;
    left: 50%;
    width: 52px;
    height: 34px;
    transform: translateX(-50%);
}

.shirt-collar::before,
.shirt-collar::after {
    position: absolute;
    z-index: 2;
    top: 4px;
    width: 28px;
    height: 25px;
    content: "";
    background: #e2e2e2;
    border-bottom: 2px solid #777;
    filter: drop-shadow(0 1px 0 #aaa);
}

.shirt-collar::before {
    left: 0;
    clip-path: polygon(0 0, 100% 22%, 72% 100%, 18% 58%);
}

.shirt-collar::after {
    right: 0;
    clip-path: polygon(0 22%, 100% 0, 82% 58%, 28% 100%);
}

.shirt-collar span {
    position: absolute;
    z-index: 1;
    top: -5px;
    left: 50%;
    width: 25px;
    height: 18px;
    background: #444;
    border-radius: 0 0 50% 50%;
    transform: translateX(-50%);
}

.shirt-collar span::after {
    position: absolute;
    top: 0;
    left: 3px;
    width: 19px;
    height: 13px;
    content: "";
    background: #f7f7f7;
    border-radius: 0 0 50% 50%;
}

.shirt-placket {
    position: absolute;
    z-index: 5;
    top: 22px;
    left: 50%;
    width: 12px;
    height: 32px;
    background: #eee;
    border-right: 1px solid #999;
    border-left: 1px solid #999;
    transform: translateX(-50%);
}

.shirt-placket i {
    position: absolute;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #555;
    border-radius: 50%;
    transform: translateX(-50%);
}

.shirt-placket i:first-child {
    top: 8px;
}

.shirt-placket i:last-child {
    top: 20px;
}

.shirt-collar-back {
    top: -2px;
    width: 42px;
    height: 17px;
    background: #dedede;
    border: 0;
    border-bottom: 3px solid #666;
    border-radius: 0 0 50% 50%;
}

.shirt-collar-back::before,
.shirt-collar-back::after {
    display: none;
}

.shirt-logo {
    position: absolute;
    z-index: 4;
    top: 40px;
    right: 11px;
    width: 27px;
    height: auto;
    object-fit: contain;
}

.shirt-back .shirt-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shirt-back .preview-name {
    z-index: 4;
    display: block;
    width: 82px;
    max-width: calc(100% - 10px);
    margin-top: 28px;
    overflow: hidden;
    color: #d71920;
    font-size: 16px;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.shirt-back .preview-number {
    z-index: 4;
    margin-top: 5px;
    color: #d71920;
    font-size: 34px;
    line-height: 0.9;
}

@media (max-width: 560px) {
.shirts {
        gap: 32px;
        margin: 0;
        padding: 15px 0;
        transform: none;
    }

.shirt-preview {
        transform: scale(0.85);
    }
}

.summary dl {
    margin: 0;
}

.summary dl div {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.summary dt {
    font-weight: 700;
}

.summary dd {
    margin-left: auto;
    text-transform: uppercase;
}

.thanks {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding: 16px;
    background: #fffaf6;
    border: 1px solid #ddd2c6;
    border-radius: 10px;
}

.thanks::first-letter {
    color: #df151d;
    font-size: 38px;
}

.thanks span {
    font-size: 14px;
}

.summary-submit {
    margin-top: 18px;
}

.summary-submit button {
    width: 100%;
}

.summary-submit .emailnote {
    margin-bottom: 0;
    text-align: left;
}

/* Order summary */
.summary-empty {
    margin: 18px 0 0;
    padding: 18px;
    border: 1px dashed #d8d2cb;
    border-radius: 10px;
    background: #fafafa;
    color: #686b72;
}

.summary-empty strong,
.summary-empty span {
    display: block;
}

.summary-empty strong {
    margin-bottom: 4px;
    color: #1d1d1f;
}

[hidden] {
    display: none !important;
}

/* Product selection */
.merch-product-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.merch-product-card {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    background: #fafafa;
    border: 1px solid #dedede;
    border-radius: 12px;
}

.merch-product-card > div {
    display: grid;
    gap: 5px;
}

.merch-product-card strong {
    font-size: 17px;
}

.merch-product-card span {
    color: #d71920;
    font-weight: 800;
}

.merch-product-card small,
.form-help {
    color: #6a6d73;
    font-size: 13px;
    line-height: 1.4;
}

.merch-product-card label {
    width: 92px;
    flex: 0 0 92px;
}

.merch-product-card .product-check {
    display: inline-flex;
    width: auto;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
}

.merch-product-card .product-check input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #d71920;
    cursor: pointer;
}

.merch-product-card .product-toggle {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.merch-product-card .product-toggle-button {
    width: auto;
    min-width: 82px;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}

.form-help {
    margin: -8px 0 18px;
}

.merch-previews {
    display: grid;
    min-height: 245px;
    align-content: center;
    justify-items: center;
    gap: 0;
}

.merch-previews .shirts {
    min-height: 225px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.merch-previews.has-both {
    display: flex;
    min-height: 245px;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.merch-previews.has-both .shirts {
    min-height: 200px;
    margin: 0;
    transform: scale(0.82);
    transform-origin: center;
}

.merch-shirt-preview.is-long-sleeve .shirt-sleeve {
    top: 24px;
    width: 48px;
    height: 148px;
    background: linear-gradient(90deg, #fff 0%, #f7f7f7 55%, #fff 100%);
}

.merch-shirt-preview.is-long-sleeve .shirt-sleeve-left {
    left: 8px;
    transform: rotate(8deg);
    transform-origin: top right;
    clip-path: polygon(30% 0, 100% 0, 72% 100%, 28% 100%, 0 12%);
}

.merch-shirt-preview.is-long-sleeve .shirt-sleeve-right {
    right: 8px;
    transform: rotate(-8deg);
    transform-origin: top left;
    clip-path: polygon(0 0, 70% 0, 100% 12%, 72% 100%, 28% 100%);
}

.merch-shirt-preview.is-long-sleeve .shirt-body::before,
.merch-shirt-preview.is-long-sleeve .shirt-body::after {
    position: absolute;
    z-index: 3;
    top: 42px;
    bottom: 24px;
    width: 1px;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.merch-shirt-preview.is-long-sleeve .shirt-body::before {
    left: 8px;
    transform: rotate(4deg);
    transform-origin: top center;
}

.merch-shirt-preview.is-long-sleeve .shirt-body::after {
    right: 8px;
    transform: rotate(-4deg);
    transform-origin: top center;
}

.merch-previews.has-two-shirts .merch-shirt-preview {
    transform: scale(0.72);
    margin-inline: -22px;
}

.cap-preview {
    display: block;
    flex: 0 0 120px;
    width: 120px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.cap-preview[hidden] {
    display: none;
}

.merch-previews.has-two-items .cap-preview:not([hidden]) {
    margin-left: -38px;
    margin-right: 0;
}

.summary-total {
    margin-top: 6px;
    font-size: 18px;
    background: #fff7f7;
    border-top: 2px solid #d71920;
}

.summary-total dd {
    color: #d71920;
    font-weight: 800;
}

@media (max-width: 760px) {
main#order {
        grid-template-columns: 1fr;
    }

main#order > form {
        order: 1;
    }

main#order > .summary {
        order: 2;
    }
}

@media (max-width: 560px) {
.merch-product-card {
        align-items: center;
        padding: 15px;
    }

.merch-product-card label {
        width: 78px;
        flex-basis: 78px;
    }

.shirts {
        margin: -20px;
        transform: scale(0.8);
    }

.bank {
        display: block;
    }

.bank span {
        display: block;
        margin-top: 7px;
    }
}

@media (max-width: 760px) {
main#order > .summary {
        min-width: 0;
    }

.merch-previews,
.merch-previews.has-both {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        gap: 8px;
    }

.merch-previews .shirts,
.merch-previews.has-both .shirts {
        flex: 0 0 auto;
        margin: 0;
        transform: none;
    }

.merch-previews.has-two-shirts .merch-shirt-preview {
        margin-inline: 0;
        transform: none;
    }

.merch-previews .cap-preview,
.merch-previews.has-two-items .cap-preview:not([hidden]) {
        margin: 0 auto;
    }
}

/* Senior and Club Shop products */
.senior-product-image { flex:0 0 90px; align-self:center; }

.senior-product-image img { display:block; width:90px; height:90px; object-fit:contain; }

.merch-product-card .senior-product-copy { flex:1; min-width:0; }

#seniorInterestForm [data-senior-quantities] { flex:none; display:flex; flex-wrap:nowrap; align-items:flex-end; margin:0; gap:12px; }

#seniorInterestForm [data-senior-quantities][hidden] { display:none; }

#seniorInterestForm [data-senior-quantities] label { width:auto; flex:none; }

#seniorInterestForm [data-senior-quantities] select { width:120px; }

#seniorInterestForm [data-senior-quantities] input { width:70px; margin-top:8px; }

#seniorInterestForm [data-senior-quantities] input,
#seniorInterestForm [data-senior-quantities] select { height:34px; padding-top:6px; padding-bottom:6px; box-sizing:border-box; }

@media(max-width:600px) {
#seniorInterestForm .merch-product-card { gap:8px; flex-wrap:nowrap; }

#seniorInterestForm [data-senior-quantities] { gap:6px; }

#seniorInterestForm [data-senior-quantities] select { width:80px; }

#seniorInterestForm [data-senior-quantities] input { width:55px; }

#seniorInterestForm .senior-product-image { display:none; }
}

/* Senior shirt previews */
.senior-playing-preview.is-red .shirt-body { background:#d71920; }

.senior-playing-preview.is-red .shirt-sleeve { background:#d71920; border-bottom-color:#d71920; }

.senior-playing-preview.is-red .shirt-back .preview-name,
.senior-playing-preview.is-red .shirt-back .preview-number { color:#fff; }

.senior-kit-previews { display:block; padding:16px 0; }

.senior-preview-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:16px; }

.senior-kit-previews section { margin:0 0 20px; }

.senior-kit-previews[hidden],
.senior-kit-previews [data-senior-preview][hidden],
.senior-kit-previews [data-senior-order-preview][hidden],
.senior-kit-previews section[hidden] { display:none; }

.senior-kit-previews .shirts { min-height:0; padding:0; gap:16px; margin:0; transform:none; }

.senior-kit-shirt { width:105px; height:134px; }

.senior-kit-shirt .shirt-preview { transform:scale(.72); transform-origin:top left; }

.senior-kit-product { display:block; width:90px; height:130px; object-fit:contain; }

.senior-playing-preview.is-long-sleeve:not(.is-red) .shirt-sleeve { border-bottom:6px solid #d71920; }

.senior-playing-preview:not(.is-long-sleeve):not(.is-red) .shirt-sleeve { border-bottom:0; }

.senior-playing-preview:not(.is-long-sleeve):not(.is-red) .shirt-sleeve::after { content:""; position:absolute; inset:0; background:#d71920; }

.senior-playing-preview:not(.is-long-sleeve):not(.is-red) .shirt-sleeve-left::after { clip-path:polygon(0 72%,82% 100%,84% 91%,7% 65%); }

.senior-playing-preview:not(.is-long-sleeve):not(.is-red) .shirt-sleeve-right::after { clip-path:polygon(18% 100%,100% 72%,93% 65%,16% 91%); }

.senior-playing-preview.is-red .shirt-placket { background:#d71920; border-color:#b8141a; }

.senior-playing-preview.is-red .shirt-collar::before,
.senior-playing-preview.is-red .shirt-collar::after { background:#111; border-bottom-color:#111; filter:none; }

.senior-shirt-sponsor { position:absolute; z-index:4; top:74px; left:3px; right:3px; text-align:center; color:#111; font-size:13px; line-height:1; letter-spacing:-.6px; }

.senior-playing-preview.is-red .senior-shirt-sponsor { color:#fff; }

.senior-playing-preview.is-long-sleeve.is-red .shirt-sleeve { border-bottom:6px solid #111; }

.senior-playing-preview:not(.is-long-sleeve).is-red .shirt-sleeve { border-bottom:0; }

.senior-playing-preview:not(.is-long-sleeve).is-red .shirt-sleeve::after { content:""; position:absolute; inset:0; background:#111; }

.senior-playing-preview:not(.is-long-sleeve).is-red .shirt-sleeve-left::after { clip-path:polygon(0 72%,82% 100%,84% 91%,7% 65%); }

.senior-playing-preview:not(.is-long-sleeve).is-red .shirt-sleeve-right::after { clip-path:polygon(18% 100%,100% 72%,93% 65%,16% 91%); }

.senior-playing-preview.is-red .shirt-collar-back { background:#111; border-bottom-color:#111; }

.senior-playing-preview.is-red .shirt-collar span { background:#111; }

@font-face { font-family:Orbitron; src:url("/assets/fonts/orbitron.ttf") format("truetype"); font-weight:400 900; font-style:normal; font-display:swap; }

.senior-playing-preview .senior-shirt-sponsor { top:74px; left:3px; right:3px; width:auto; height:auto; display:block; font-family:Orbitron,sans-serif; font-weight:700; font-size:11px; letter-spacing:-.6px; text-align:center; }

#seniorNamePreviewSection .senior-preview-row { flex-wrap:nowrap; }

.senior-kit-previews section h3 { display:none; width:100%; margin:0 0 12px; padding:0; font-size:1rem; line-height:1.4; font-weight:600; text-align:left; }

.senior-kit-previews section { display:block; width:100%; padding:0; text-align:left; }

#seniorNamePreviewSection {
    display: none;
}

.playing-shop-blackout {position:fixed;inset:0;z-index:2147483647;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.5);backdrop-filter:blur(9px);overflow:auto;box-sizing:border-box}

.playing-shop-closed-card {width:min(100%,520px);box-sizing:border-box;text-align:center;padding:44px 30px;border:1px solid #dedede;border-radius:20px;background:linear-gradient(145deg,#fff,#f1f1f1);color:#111;box-shadow:0 24px 100px #0006}

.playing-shop-closed-card small {color:#d61224;font-weight:800;letter-spacing:3px;text-transform:uppercase}

.playing-shop-closed-card h2 {font-size:clamp(36px,7vw,58px);line-height:1.1;margin:20px 0;color:#111}

.playing-shop-closed-card p {color:#444;line-height:1.65;margin:24px 0;overflow-wrap:anywhere}

.playing-shop-closed-card a {color:#222}

.playing-shop-closed-card .shop-return {display:inline-block;padding:14px 24px;border-radius:8px;background:#e31325;color:white;text-decoration:none;font-weight:700}

@media(prefers-reduced-motion:no-preference) {
.playing-shop-closed-card {animation:playing-shop-reveal .65s ease-out both}

@keyframes playing-shop-reveal {from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
}

.preview-name.preview-font-9 { font-size: 9px; }

.preview-name.preview-font-10 { font-size: 10px; }

.preview-name.preview-font-11 { font-size: 11px; }

.preview-name.preview-font-12 { font-size: 12px; }

.preview-name.preview-font-13 { font-size: 13px; }

.preview-name.preview-font-14 { font-size: 14px; }

.preview-name.preview-font-15 { font-size: 15px; }

.preview-name.preview-font-16 { font-size: 16px; }

body.is-shop-closed { overflow: hidden; }

/* Align shop content with the heading and keep range links compact. */
.playing-shop-page .merch-hero,
.playing-shop-page main#order,
.playing-shop-page .shop-playing-links {
    padding-left: calc(4% + 25px);
    padding-right: calc(4% + 25px);
}

.playing-shop-page .merch-hero {
    height: auto;
    min-height: 0;
}

.playing-shop-page .merch-hero > div:first-child {
    padding: 20px 0 0;
}

.shop-playing-links {
    padding-top: 12px;
    padding-bottom: 24px;
}

.shop-playing-links > .card {
    display: block;
    padding: 30px 60px;
}

.shop-playing-links h2 {
    margin: 0 0 20px;
    font-size: 22px;
}

.shop-playing-links p {
    margin: 7px 0 0;
    color: #6a6d73;
    font-size: 14px;
    line-height: 1.5;
}

.shop-playing-links nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: stretch;
}

.shop-playing-links .shop-range-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    align-self: stretch;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: #fafafa;
    color: #111;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.shop-playing-links .shop-range-link strong {
    font-size: 18px;
    line-height: 1.4;
}

.shop-playing-links .shop-range-status {
    margin-top: 7px;
    color: #6a6d73;
    font-size: 14px;
    line-height: 1.5;
}

.shop-playing-links .shop-range-link:hover {
    background: #efefef;
}

.shop-playing-links .shop-range-link:hover strong {
    color: var(--club-red, #d71920);
}

.shop-playing-links .shop-range-link:focus-visible {
    outline: 2px solid var(--club-red, #d71920);
    outline-offset: 4px;
}

.shop-playing-links .shop-range-status::before {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #8b8d91;
    content: "";
    vertical-align: 1px;
}

.shop-playing-links .shop-range-status-eoi::before {
    background: #b77916;
}

.shop-playing-links .shop-range-status-sale::before {
    background: #287a4b;
}

@media (max-width: 900px) {
    .shop-playing-links > .card {
        padding: 30px;
    }

    .shop-playing-links nav {
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .shop-playing-links > .card {
        padding: 24px 20px;
    }

    .shop-playing-links nav {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.playing-shop-page main#order {
    margin-top: 0;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.playing-shop-page main#order > .summary {
    align-self: start;
    min-width: 0;
}

@media (max-width: 760px) {
    .playing-shop-page main#order {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .playing-shop-page .merch-hero,
    .playing-shop-page main#order,
    .playing-shop-page .shop-playing-links {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Keep selected product fields and Remove on the same bottom edge. */
#seniorInterestForm [data-senior-quantities]:not([hidden]) {
    align-self: stretch;
    align-items: flex-end;
}
#seniorInterestForm [data-senior-quantities] label {
    margin-bottom: 0;
}
#seniorInterestForm [data-senior-quantities] input,
#seniorInterestForm [data-senior-quantities] select {
    margin-bottom: 0;
}
#seniorInterestForm .merch-product-card > .product-toggle {
    align-self: stretch;
    align-items: flex-end;
}

/* Lift the complete product control group without changing its alignment. */
#seniorInterestForm [data-senior-quantities]:not([hidden]),
#seniorInterestForm .merch-product-card > .product-toggle {
    margin-bottom: 12px;
}
