/* Titled wedding times: Nikkah 7:00 PM, Dinner 8:00 PM ... */
.wedding-times-list { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 0; max-width: 26rem; text-align: left; }
.wedding-times-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.wedding-times-list li:last-child { border-bottom: 0; }
.wedding-times-list span { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.wedding-times-list time { white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .85; }
.tpl-elegant .wedding-times-list, .ai-invitation .wedding-times-list { margin-inline: auto; }

/* Editor */
.wedding-times { border: 1px solid var(--line, #e4e0ef); border-radius: 14px; padding: 14px 16px 16px; margin: 0; min-width: 0; }
.wedding-times[hidden] { display: none !important; }
.wedding-times legend { padding: 0 6px; font-weight: 700; }
.wedding-times .helper { margin: 0 0 10px; }
.wt-rows { display: grid; gap: 10px; }
.wt-rows:empty { display: none; }
.wt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 10rem) 40px; gap: 10px; align-items: end; }
.wt-row label { margin: 0; min-width: 0; }
.wt-row input { width: 100%; min-width: 0; }
.wt-remove { width: 40px; height: 44px; border: 1px solid var(--line, #e4e0ef); border-radius: 10px; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.wt-remove:hover, .wt-remove:focus-visible { border-color: currentColor; }
.wt-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wt-add[hidden] { display: none; }
.wt-chip { border: 1px solid var(--line, #e4e0ef); border-radius: 999px; background: transparent; color: inherit; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; min-height: 36px; }
.wt-chip:hover, .wt-chip:focus-visible { border-color: currentColor; }
.wt-chip[hidden] { display: none; }
.wt-limit { margin: 10px 0 0; }
/* Inside the New Event wizard the step title already explains the group. */
.iw-step .wedding-times { border: 0; padding: 0; }
.iw-step .wedding-times > legend, .iw-step .wedding-times > .helper:first-of-type { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) {
  .wt-row { grid-template-columns: minmax(0, 1fr) 40px; }
  .wt-row .wt-label { grid-column: 1 / -1; }
}
