/* x-extras.css: styles for the upgrade features (site-extras.js, staff-extras.js, team-extras.js).
   Built from the existing tokens, so the website keeps its look and the back office its calmer one. */

/* Class tags: Women only and Coach's OK, next to the existing level tags */
.ctag-women { border-color: var(--st-rose, #9B1B5A); color: var(--st-rose, #9B1B5A); }
.ctag-ok { border-color: var(--st-amber); color: var(--st-amber); }
body[data-area="site"] .ctag-women { border-color: #F48FB8; color: #F48FB8; }
body[data-area="site"] .ctag-ok { border-color: var(--st-amber); color: var(--st-amber); }
.class-info .ctag + .ctag { margin-left: 6px; }
.slot-tag { display: block; margin-top: 2px; font: 700 10px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #F48FB8; }

/* Add to calendar buttons */
.cal-btns { margin-top: 14px; flex-wrap: wrap; }
.done-panel .cal-btns { justify-content: center; }
.sx-done { text-align: center; }
.sx-done .sheet-summary { text-align: left; }
.sx-done .cal-btns { justify-content: center; }
.sx-done .done-mark { margin: 0 auto 10px; }

/* Booking pop-up: "Got a class pack?" */
.sx-pack-row { display: flex; gap: 8px; margin-top: 8px; }
.sx-pack-row input { flex: 1; min-width: 0; }

/* Codes (gift cards, tickets) */
.sx-code { display: inline-block; margin: 12px 0; padding: 10px 16px; border: 1px dashed var(--line-ctl); font: 800 22px/1 var(--display); letter-spacing: .06em; }

/* Event tickets on the Events page */
.sx-ticket-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }

/* Family account */
.sx-fam-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sx-fam-head > div { flex: 1; min-width: 160px; }
.sx-fam-head h3 { margin: 0; }

/* About you / get to know them */
.sx-about-list { display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 10px 0 0; }
.sx-about-list div { min-width: 0; }
.sx-about-list dt { color: var(--muted); }
.sx-about-list dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.about-form fieldset { border: 0; margin: 0; padding: 0; }
.about-chips { flex-wrap: wrap; overflow: visible; gap: 6px; }
.chip-check { position: relative; display: inline-flex; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-ctl); background: var(--surface); color: var(--text); font: 600 14px var(--sans); }
.chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
body[data-area="site"] .chip-check span { border-radius: 999px; }
body[data-area="site"] .chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Private training: coach picker and day chips */
.sx-coach-pick .pick > span { flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 36px; }
.sx-coach { display: flex; }
.sx-coach-img { display: block; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.sx-coach-img img { width: 100%; height: 100%; object-fit: cover; }
.sx-coach-img .monogram { display: grid; place-items: center; width: 100%; height: 100%; }
.sx-days, .sx-days + * { flex-wrap: wrap; overflow: visible; }
.step .chips { flex-wrap: wrap; overflow: visible; gap: 6px; }
.chip[disabled] { opacity: .4; cursor: not-allowed; }

/* Shop */
.sx-shop { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .sx-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sx-shop { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sx-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sx-item h3 { margin: 0; font-size: 16px; }
.sx-item .plan-price { margin: 0; }
.sx-item-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.sx-item-blank { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--brand) 22%, var(--surface))); color: var(--muted); font: 800 28px var(--display); }
.sx-item-pick { display: flex; gap: 6px; margin-top: auto; }
.sx-item-pick select { flex: 1; min-width: 0; }
@media (max-width: 520px) { .sx-item-pick { flex-wrap: wrap; } .sx-item-pick select { flex: 1 1 100%; } }
.sx-cart .sum-row { display: flex; justify-content: space-between; }

/* Back office: member card sections */
.bx-sheet { margin-top: 14px; display: grid; gap: 12px; }
.bx-sec { padding-top: 12px; border-top: 1px solid var(--line); }
.bx-sec > p { margin: 4px 0; }
.bx-sec .btn-row { margin-top: 8px; flex-wrap: wrap; }
.bx-small { font-size: 13px; margin-top: 6px; }
.bx-talk { margin: 8px 0 0; padding: 8px 10px; background: var(--note-info); }
.bx-notes p { margin: 4px 0; font-size: 14px; }
.bx-row-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-style: normal; }
.bx-ath.is-due { border-left: 4px solid var(--mk-amber); }
.bx-ath .sheet-facts { margin-top: 10px; }
.bx-pack-table { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .stats-3 { grid-template-columns: 1fr; } }

/* Staff portal */
.tp-talk { margin: 6px 0 0; padding: 6px 10px; font-size: 14px; background: var(--note-info); }
