/* Clases en grupo en la web del negocio. Se apoya en reservas.css y en las variables de site.css (--brand…). */
.cw { overflow-x: clip; }
.cw-pick { padding-top: 24px; }
.cw-types { margin-bottom: 16px; }
.cw-types .chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.cw-types .chip { flex: 0 0 auto; }
.cw-strip .sday.off { cursor: pointer; }
.cw-strip .sday.full .n { color: var(--bad); }
.cw-strip .sday[aria-pressed="true"] .n { color: inherit; }
.cw-day { margin: 24px 0 12px; font-size: 1.15rem; }
.cw-list { display: grid; gap: 10px; }
.cw-list > .hint { margin: 0; padding: 18px 16px; background: var(--surface); border-radius: var(--radius); }

.cw-class { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.cw-time { margin: 0; display: grid; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cw-time b { font-size: 1.2rem; }
.cw-time span { font-size: .85rem; color: var(--muted); }
.cw-main { min-width: 0; }
.cw-main h4 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.cw-who { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.cw-left { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; }
.cw-bar { flex: 0 0 72px; height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.cw-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.cw-class.is-few .cw-left { color: var(--ink); }
.cw-class.is-few .cw-left span:last-child::before { content: "● "; color: #d97706; }
.cw-class.is-full .cw-bar i { background: var(--muted); }
.cw-class.is-full .cw-left { color: var(--muted); }
.cw-wait { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.cw-side { display: grid; justify-items: end; gap: 8px; }
.cw-price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cw-side .btn { min-height: 44px; white-space: nowrap; }
.cw-class.is-off { background: var(--surface); border-color: transparent; }
.cw-class.is-off h4 { text-decoration: line-through; color: var(--muted); }
.cw-class.is-off .cw-left { color: var(--bad); }
.cw-class.is-off .cw-bar { display: none; }
.cw-foot { margin-top: 16px; }

.cw-form { padding-top: 24px; }
.cw-chosen { padding: 18px; border: 1px solid var(--brand); border-radius: var(--radius); }
.cw-chosen .kicker { margin: 0 0 4px; }
.cw-chosen h2 { margin: 0; font-size: 1.4rem; }
.cw-sum { margin: 6px 0 0; font-weight: 600; }
.cw-note { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.cw-back { margin: 12px 0 4px; padding: 8px 0; border: 0; background: none; color: var(--ink); text-decoration: underline; font: inherit; cursor: pointer; }
.cw .fields input, .cw textarea, .cw .linkbox input { font-size: 16px; }
.cw-news { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); font-weight: 600; }
.ticket-state[data-estado="waiting"] { border-color: #d97706; color: #b45309; }

@media (max-width: 560px) {
    .cw-class { grid-template-columns: 52px minmax(0, 1fr); padding: 14px; }
    .cw-side { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; margin-top: 6px; }
    .cw-side .cw-price { justify-self: start; }
    .cw-side .btn { justify-self: end; }
    .cw-side .btn:only-child { grid-column: 1 / -1; }
}
.cw .done p { margin: 0 0 12px; }
