header { margin-bottom: 1.5rem; }
h2 { font-size: 1.28rem; margin: 1.3rem 0 .75rem; line-height: 1.25; }
h3 { font-size: 1rem; margin: 0; }
.lead { margin: .65rem 0 1.5rem; }
fieldset { padding: 0; border: 0; margin: 0; min-inline-size: 0; }
legend, label[for="alias"] { font-weight: 650; }
.hint { font-size: .91rem; color: #455851; margin: .25rem 0 .65rem; }
#slots { display: grid; gap: 1rem; }
.slot-day p { margin: 0 0 .35rem; font-weight: 600; }
.slot-times, .receipt-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span { display: block; padding: .6rem .8rem; line-height: 1.4; border: 1px solid #829b8e; border-radius: .45rem; font-variant-numeric: tabular-nums; }
.slot input:checked + span { color: white; background: #245c42; box-shadow: inset 0 0 0 2px #173c2c; border-color: #173c2c; }
.slot input:checked + span::before { content: "✓ "; }
.slot input:focus-visible + span, button:focus-visible, input[type="text"]:focus-visible { outline: 3px solid #165b93; outline-offset: 2px; }
#customer { border-top: 1px solid #d4dfd5; margin-top: 1.25rem; padding-top: 1.25rem; display: grid; gap: .3rem; }
input[type="text"] { font: inherit; color: inherit; width: 100%; border: 1px solid #829b8e; border-radius: .45rem; padding: .6rem .75rem; background: #fff; }
button { min-height: 44px; }
button:disabled { opacity: .65; cursor: default; }
.quiet { font: inherit; font-size: .92rem; font-weight: 600; padding: .45rem .6rem; border: 1px solid #829b8e; color: #245c42; background: white; border-radius: .45rem; cursor: pointer; }
#slot-status { margin: .6rem 0; }
#slot-status:empty { display: none; }
#announcement:not(:empty) { margin: .9rem 0; padding: .7rem .9rem; border-left: 4px solid #245c42; background: #edf4ef; border-radius: .2rem; }
#announcement.error { border-color: #99511d; background: #fff4e6; }
.receipt { padding: 1rem; margin-bottom: .6rem; border: 1px solid #d1dfd4; border-radius: .65rem; overflow-wrap: anywhere; }
.receipt p { margin: .3rem 0 .7rem; }
@media (max-width: 420px) {
  body { padding: .6rem; }
  main { padding: 1.15rem; }
  h1 { font-size: 1.8rem; }
}
