/* Reminders set for later: the choice in the remind dialog, the plain list of what is scheduled with a
   Cancel for each, and the lines in the Overview banner. js/ui/schedule.js and js/ui/remind.js.
   Tokens only, so light, dark and every accent come for free; test/a11y-static.mjs reads this file. */

/* ---- Send now / Send on a chosen date and time ---- */

.sched-choice { border: 0; margin: 0 0 var(--space-16); padding: 0; min-width: 0; }
.sched-choice legend { padding: 0; margin: 0 0 var(--space-8); font-size: 14px; font-weight: 700; }
.sched-opt {
  display: flex; align-items: center; gap: var(--space-16); min-height: 48px; margin: 0 0 var(--space-8); padding: var(--space-8) var(--space-16);
  border: 1px solid var(--control); border-radius: var(--radius); cursor: pointer; line-height: 1.4;
}
.sched-opt input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
/* The chosen option is told by its radio and by a heavier edge and a tint: not by colour alone. */
.sched-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.sched-opt:has(input:checked) { box-shadow: inset 0 0 0 1px var(--accent); }
.sched-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.sched-later { margin: 0 0 var(--space-16); }
.sched-later .field { margin: 0; }
.sched-later input[type="datetime-local"] { width: 100%; max-width: 320px; min-height: 48px; }
.sched-off {
  display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-16) var(--space-16); border-radius: var(--radius);
  background: var(--warning-soft); color: var(--warning); font-size: 14px; line-height: 1.5;
}
.sched-off strong { font-weight: 700; }

/* ---- what is scheduled ---- */

.sched-box { margin: 0 0 var(--space-16); }
.sched-box:empty { display: none; }
.sched-heading { margin: 0 0 var(--space-4); font-size: 15px; font-weight: 700; }
.sched-title { margin: 0 0 var(--space-4); font-size: 14px; font-weight: 700; }
.sched-list { list-style: none; margin: 0; padding: 0; }
.sched-item {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8) var(--space-16);
  min-height: 52px; padding: var(--space-8) 0; border-top: 1px solid var(--border);
}
.sched-item:first-child { border-top: 0; }
.sched-what { display: flex; flex-direction: column; flex: 1 1 220px; min-width: 0; line-height: 1.4; }
.sched-what b { font-weight: 700; overflow-wrap: anywhere; }
.sched-what span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sched-item.done .sched-what b { font-weight: 600; }

/* ---- the Overview banner ---- */

.remind-banner-sched { flex: 1 1 100%; }
.remind-banner-sched:empty { display: none; }
/* On the banner's tinted ground the muted grey is too faint: the banner's own text colour is used. */
.remind-banner .sched-what span { color: inherit; }
.remind-banner .sched-item { border-top-color: transparent; padding: var(--space-4) 0; }

@media (max-width: 640px) {
  .sched-later input[type="datetime-local"] { max-width: none; }
  .sched-item .btn { min-height: 44px; }
}

/* A timing's name, with "Visible to guests" on the right when the wedding page shows it (owner, 4 Dec). */
.timing-head { display: flex; align-items: baseline; gap: var(--space-8); }
.timing-what { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 13.5px; overflow-wrap: anywhere; }
.timing-guests { flex: none; display: inline-flex; align-items: center; gap: var(--space-4); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.timing-guests .material-symbols-rounded { font-size: 16px; }
