@semics-tech/emdash-events 1.0.0-rc.1 → 1.0.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,29 @@
1
1
  ---
2
- // <BookingStatus>: a booking's state, order and cancel button (EU-FR-06). Rendered by the
3
- // `/booking` page from the `public/booking` answer; the cancel form is a plain POST back to it.
2
+ // <BookingStatus>: a booking's summary card (EU-FR-06). Rendered by the `/booking` page from the
3
+ // `public/booking` answer. It leads with the event and the booked session, in the event's zone, and the
4
+ // place (T157), then the state, the order and its total. With `cancelAction` it ends with the quiet cancel
5
+ // action (`<CancelBooking>`); the booking page instead puts that at its foot.
4
6
  import { around, pickLocale, translator } from "../i18n/index";
5
- import { type BookingView, formatMoney, statusLabel } from "./lib/widget";
7
+ import CancelBooking from "./CancelBooking.astro";
8
+ import { zonedAt } from "./lib/list";
9
+ import { type BookingView, endedNotes, formatMoney, statusLabel } from "./lib/widget";
6
10
 
7
11
  interface Props {
8
12
  booking: BookingView;
9
13
  /** Shown as cancelled (the page just cancelled it). */
10
14
  cancelled?: boolean;
11
- /** Where the cancel form posts. */
15
+ /** Where the cancel form posts; without it the card has no cancel action. */
12
16
  cancelAction?: string;
13
17
  /** Ticket type names by id, when the page knows them. */
14
18
  ticketNames?: Record<string, string>;
19
+ /** A lapsed booking's way back: the event's page, when known. */
20
+ bookAgain?: string;
21
+ /** List the attendees' names (the page turns it off when Events Pro's signing list shows them). */
22
+ showAttendees?: boolean;
15
23
  locale?: string;
16
24
  }
17
25
 
18
- const { booking, cancelled = false, cancelAction, ticketNames = {} } = Astro.props;
26
+ const { booking, cancelled = false, cancelAction, ticketNames = {}, bookAgain, showAttendees = true } = Astro.props;
19
27
  const locale = pickLocale(Astro.props.locale, Astro.currentLocale);
20
28
  const { t, plural, lang, dir } = translator(locale);
21
29
  // A request awaiting approval (T131) holds its places until the organiser's deadline.
@@ -23,58 +31,69 @@ const [heldBefore, heldAfter] = around(
23
31
  t(booking.status === "awaiting_approval" ? "booking.decideBy" : "booking.heldUntil"),
24
32
  "time",
25
33
  );
26
- const [cancelBefore, cancelAfter] = around(t("booking.cancelUntil"), "time");
27
34
  const tickets = booking.lines.reduce((n, line) => n + line.qty, 0);
28
35
  const status = cancelled ? "cancelled" : booking.status;
29
- const at = (iso: string) => {
30
- try {
31
- const time = new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeStyle: "short", timeZone: "UTC" }).format(
32
- new Date(iso),
33
- );
34
- return t("time.utc", { time });
35
- } catch {
36
- return iso;
37
- }
38
- };
36
+ const zone = booking.event?.timezone;
37
+ const at = (iso: string) => zonedAt(iso, zone, locale);
38
+ const notes = endedNotes({ ...booking, status }, locale);
39
+ const event = booking.event;
40
+ const startsAt = event?.startsAt && Number.isFinite(Date.parse(event.startsAt)) ? event.startsAt : undefined;
41
+ // Who is coming, when the booking names different people (a plain booking puts every seat in the buyer's name).
42
+ const named = booking.attendees.map((a) => a.name).filter(Boolean);
43
+ const names = showAttendees && new Set(named).size > 1 ? named : [];
39
44
  ---
40
45
  <section class="semics-events semics-booking-status" data-testid="booking-details" data-status={status} lang={lang} dir={dir} aria-labelledby="semics-booking-status-title">
41
- <h2 id="semics-booking-status-title" class="semics-visually-hidden">{t("booking.status")}</h2>
42
- <p>
43
- {t("booking.reference")} <strong data-testid="booking-ref">{booking.bookingRef}</strong>
44
- </p>
45
- <p class="semics-status" data-testid="booking-status" data-status={status}>
46
- <span class="semics-status-badge">{statusLabel(status, locale)}</span>
47
- </p>
46
+ {event?.title ? (
47
+ <h2 id="semics-booking-status-title" class="semics-booking-event" data-testid="booking-event">{event.title}</h2>
48
+ ) : (
49
+ <h2 id="semics-booking-status-title" class="semics-visually-hidden">{t("booking.status")}</h2>
50
+ )}
51
+ {(startsAt || event?.venue) && (
52
+ <div class="semics-booking-session" data-testid="booking-session">
53
+ {startsAt && <p class="semics-booking-when"><time datetime={startsAt} data-testid="booking-when">{at(startsAt)}</time></p>}
54
+ {event?.venue && <p class="semics-booking-venue" data-testid="booking-venue">{event.venue}</p>}
55
+ </div>
56
+ )}
57
+ <div class="semics-booking-meta">
58
+ <p class="semics-status" data-testid="booking-status" data-status={status}>
59
+ <span class="semics-status-badge">{statusLabel(status, locale)}</span>
60
+ </p>
61
+ <p class="semics-booking-ref">
62
+ {t("booking.reference")} <strong data-testid="booking-ref">{booking.bookingRef}</strong>
63
+ </p>
64
+ </div>
48
65
  {
49
66
  !cancelled && booking.holdExpiresAt && (
50
- <p data-testid="booking-hold">
67
+ <p class="semics-booking-note" data-testid="booking-hold">
51
68
  {heldBefore}<time datetime={booking.holdExpiresAt}>{at(booking.holdExpiresAt)}</time>{heldAfter}
52
69
  </p>
53
70
  )
54
71
  }
55
- <ul class="semics-lines" aria-label={plural("booking.lines", tickets)}>
56
- {
57
- booking.lines.map((line) => (
58
- <li>
59
- {ticketNames[line.ticketTypeId]
60
- ? t("booking.line", { qty: new Intl.NumberFormat(locale).format(line.qty), name: ticketNames[line.ticketTypeId] })
61
- : plural("booking.lines", line.qty)}
62
- </li>
63
- ))
64
- }
65
- </ul>
66
- <p>{t("booking.total")} <strong>{formatMoney(booking.totals.totalMinor, booking.totals.currency, locale)}</strong></p>
72
+ {notes.map((note) => <p class="semics-booking-note" data-testid="booking-note">{note}</p>)}
73
+ {status === "expired" && bookAgain && <p><a href={bookAgain} data-testid="booking-book-again">{t("booking.bookAgain")}</a></p>}
74
+ <div class="semics-booking-order">
75
+ <ul class="semics-lines" aria-label={plural("booking.lines", tickets)}>
76
+ {
77
+ booking.lines.map((line) => (
78
+ <li>
79
+ {ticketNames[line.ticketTypeId]
80
+ ? t("booking.line", { qty: new Intl.NumberFormat(locale).format(line.qty), name: ticketNames[line.ticketTypeId] })
81
+ : plural("booking.lines", line.qty)}
82
+ </li>
83
+ ))
84
+ }
85
+ </ul>
86
+ {names.length > 0 && (
87
+ <div class="semics-booking-people" data-testid="booking-attendees">
88
+ <h3>{t("booking.attendeesHeading")}</h3>
89
+ <ul>{names.map((name) => <li>{name}</li>)}</ul>
90
+ </div>
91
+ )}
92
+ <p class="semics-booking-total">{t("booking.total")} <strong>{formatMoney(booking.totals.totalMinor, booking.totals.currency, locale)}</strong></p>
93
+ </div>
67
94
  {
68
95
  booking.canCancel && !cancelled && cancelAction && (
69
- <form method="post" action={cancelAction}>
70
- <input type="hidden" name="intent" value="cancel" />
71
- {booking.cancelBy && (
72
- <p>
73
- {cancelBefore}<time datetime={booking.cancelBy}>{at(booking.cancelBy)}</time>{cancelAfter}
74
- </p>
75
- )}
76
- <button type="submit">{t("booking.cancel")}</button>
77
- </form>
96
+ <CancelBooking action={cancelAction} cancelBy={booking.cancelBy} zone={zone} locale={locale} />
78
97
  )
79
98
  }
80
99
  </section>
@@ -82,24 +101,95 @@ const at = (iso: string) => {
82
101
  <style>
83
102
  .semics-booking-status {
84
103
  box-sizing: border-box;
85
- max-inline-size: 36rem;
86
104
  color: var(--events-fg, #1a1a1a);
87
105
  overflow-wrap: anywhere;
88
106
  }
107
+ .semics-booking-status p {
108
+ margin: 0 0 0.5rem;
109
+ }
110
+ .semics-booking-status .semics-booking-event {
111
+ margin: 0 0 0.5rem;
112
+ font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
113
+ line-height: 1.2;
114
+ }
115
+ .semics-booking-session {
116
+ margin-block-end: 1.25rem;
117
+ }
118
+ .semics-booking-status .semics-booking-when {
119
+ margin: 0;
120
+ font-size: 1.125rem;
121
+ font-weight: 600;
122
+ }
123
+ .semics-booking-status .semics-booking-venue {
124
+ margin: 0;
125
+ color: var(--events-muted, #4a4a4a);
126
+ }
127
+ .semics-booking-meta {
128
+ display: flex;
129
+ flex-wrap: wrap;
130
+ align-items: center;
131
+ gap: 0.5rem 1rem;
132
+ margin-block-end: 0.75rem;
133
+ }
134
+ .semics-booking-meta p {
135
+ margin: 0;
136
+ }
137
+ .semics-booking-ref {
138
+ color: var(--events-muted, #4a4a4a);
139
+ }
140
+ .semics-booking-ref strong {
141
+ color: var(--events-fg, #1a1a1a);
142
+ letter-spacing: 0.04em;
143
+ }
89
144
  .semics-status-badge {
90
145
  display: inline-block;
91
- padding: 0.125rem 0.5rem;
146
+ padding: 0.125rem 0.625rem;
92
147
  border: 1px solid currentColor;
93
- border-radius: var(--events-radius, 6px);
148
+ border-radius: 999px;
149
+ font-size: 0.875rem;
94
150
  font-weight: 600;
95
151
  }
96
152
  .semics-booking-status[data-status="confirmed"] .semics-status-badge {
97
153
  color: var(--events-success, #146c2e);
98
154
  }
99
- .semics-booking-status button {
100
- font: inherit;
101
- min-block-size: 2.75rem;
102
- padding: 0.5rem 1rem;
155
+ .semics-booking-note {
156
+ color: var(--events-muted, #4a4a4a);
157
+ }
158
+ .semics-booking-order {
159
+ margin-block-start: 1.25rem;
160
+ padding-block-start: 1rem;
161
+ border-block-start: 1px solid color-mix(in srgb, var(--events-border, #6b6b6b) 30%, transparent);
162
+ }
163
+ .semics-lines {
164
+ margin: 0 0 0.75rem;
165
+ padding: 0;
166
+ list-style: none;
167
+ }
168
+ .semics-lines li + li {
169
+ margin-block-start: 0.25rem;
170
+ }
171
+ .semics-booking-people h3 {
172
+ margin: 0 0 0.25rem;
173
+ font-size: 0.8125rem;
174
+ letter-spacing: 0.06em;
175
+ text-transform: uppercase;
176
+ color: var(--events-muted, #4a4a4a);
177
+ }
178
+ .semics-booking-people ul {
179
+ margin: 0 0 0.75rem;
180
+ padding-inline-start: 1.25rem;
181
+ }
182
+ .semics-booking-status .semics-booking-total {
183
+ display: flex;
184
+ justify-content: space-between;
185
+ gap: 1rem;
186
+ margin: 0;
187
+ padding-block-start: 0.75rem;
188
+ border-block-start: 1px solid color-mix(in srgb, var(--events-border, #6b6b6b) 30%, transparent);
189
+ font-weight: 600;
190
+ }
191
+ .semics-booking-total strong {
192
+ font-size: 1.125rem;
103
193
  }
104
194
  .semics-visually-hidden {
105
195
  position: absolute;
@@ -181,7 +181,7 @@ const when = (iso: string) => {
181
181
  aria-invalid={invalid("occurrence")}
182
182
  aria-describedby={errId("occurrence")}
183
183
  >
184
- <legend>{t("widget.date")}</legend>
184
+ <legend class="semics-visually-hidden">{t("widget.date")}</legend>
185
185
  <table role="grid" class="semics-calendar" aria-labelledby={monthId}>
186
186
  <thead>
187
187
  <tr>
@@ -439,9 +439,9 @@ const when = (iso: string) => {
439
439
 
440
440
  {siteKey && (
441
441
  <>
442
- <div class="cf-turnstile" data-sitekey={siteKey}></div>
443
- {/* Turnstile is 300 px wide; in a narrower widget use its compact size so a 320 px screen never scrolls sideways (WCAG 1.4.10). */}
444
- <script is:inline>(function (s) { var t = s && s.previousElementSibling; if (t && t.clientWidth < 300) t.setAttribute("data-size", "compact"); })(document.currentScript);</script>
442
+ <div class="cf-turnstile" data-sitekey={siteKey} data-theme="light"></div>
443
+ {/* Turnstile is 300 px wide: compact when the form has less room, so a 320 px screen never scrolls sideways (WCAG 1.4.10). The form is measured, not the empty box; a form not laid out yet (0 px) falls back to the screen less the card's padding (T158). Light, like the card. */}
444
+ <script is:inline>(function (s) { var t = s && s.previousElementSibling, f = t && t.closest("form"), w = f ? f.clientWidth : 0; if (!w) w = document.documentElement.clientWidth - 48; if (t && w < 300) t.setAttribute("data-size", "compact"); })(document.currentScript);</script>
445
445
  <noscript>
446
446
  <p class="semics-needs-js" data-testid="booking-needs-js">{t("widget.needsJs")}</p>
447
447
  </noscript>
@@ -493,8 +493,8 @@ const when = (iso: string) => {
493
493
  </div>
494
494
  {siteKey && (
495
495
  <>
496
- <div class="cf-turnstile" data-sitekey={siteKey}></div>
497
- <script is:inline>(function (s) { var t = s && s.previousElementSibling; if (t && t.clientWidth < 300) t.setAttribute("data-size", "compact"); })(document.currentScript);</script>
496
+ <div class="cf-turnstile" data-sitekey={siteKey} data-theme="light"></div>
497
+ <script is:inline>(function (s) { var t = s && s.previousElementSibling, f = t && t.closest("form"), w = f ? f.clientWidth : 0; if (!w) w = document.documentElement.clientWidth - 48; if (t && w < 300) t.setAttribute("data-size", "compact"); })(document.currentScript);</script>
498
498
  </>
499
499
  )}
500
500
  <button type="submit" class="semics-secondary">{t("waitlist.button")}</button>
@@ -510,23 +510,31 @@ const when = (iso: string) => {
510
510
  import "../client/picker.ts";
511
511
  </script>
512
512
 
513
+
513
514
  <style>
515
+ /* One card with even, generous padding; groups read as sections with small headings, not boxes (T157). */
514
516
  .semics-booking-widget {
515
517
  --_fg: var(--events-fg, #1a1a1a);
516
518
  --_muted: var(--events-muted, #4a4a4a);
517
519
  --_bg: var(--events-bg, #ffffff);
518
520
  --_border: var(--events-border, #6b6b6b);
521
+ --_line: color-mix(in srgb, var(--_border) 30%, transparent);
522
+ --_tint: color-mix(in srgb, var(--_accent) 7%, var(--_bg));
519
523
  --_accent: var(--events-accent, #0b57d0);
520
524
  --_accent-fg: var(--events-accent-fg, #ffffff);
521
525
  --_error: var(--events-error, #b3261e);
522
526
  --_radius: var(--events-radius, 6px);
527
+ --_pad: clamp(1.25rem, 0.75rem + 2.5vw, 2rem);
523
528
  box-sizing: border-box;
524
- max-inline-size: 36rem;
525
- padding: 1rem;
526
- border: 1px solid var(--_border);
527
- border-radius: var(--_radius);
529
+ /* The host sets the width: the widget fills its column, up to `--events-widget-max` when set (T158). */
530
+ max-inline-size: var(--events-widget-max, none);
531
+ padding: var(--_pad);
532
+ border: 1px solid var(--_line);
533
+ border-radius: calc(var(--_radius) + 6px);
528
534
  background: var(--_bg);
535
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 24px rgb(0 0 0 / 0.06);
529
536
  color: var(--_fg);
537
+ line-height: 1.5;
530
538
  overflow-wrap: anywhere;
531
539
  }
532
540
  .semics-booking-widget *,
@@ -535,37 +543,40 @@ const when = (iso: string) => {
535
543
  box-sizing: border-box;
536
544
  }
537
545
  .semics-booking-widget h2 {
538
- margin: 0 0 0.75rem;
539
- font-size: 1.25rem;
546
+ margin: 0 0 1.25rem;
547
+ font-size: 1.375rem;
548
+ line-height: 1.25;
540
549
  }
541
550
  .semics-booking-widget form {
542
551
  display: grid;
543
552
  grid-template-columns: minmax(0, 1fr);
544
- gap: 0.75rem;
553
+ gap: 1.25rem;
545
554
  }
546
555
  .semics-booking-widget .semics-waitlist {
547
- margin-block-start: 1.25rem;
548
- padding-block-start: 1rem;
549
- border-block-start: 1px solid var(--_border);
556
+ margin-block-start: 1.5rem;
557
+ padding-block-start: 1.5rem;
558
+ border-block-start: 1px solid var(--_line);
550
559
  }
551
560
  .semics-waitlist h3,
552
561
  .semics-waitlist p {
553
562
  margin: 0;
554
563
  }
555
- .semics-tickets {
556
- margin: 0;
557
- padding: 0.5rem 0.75rem;
558
- border: 1px solid var(--_border);
559
- border-radius: var(--_radius);
560
- min-inline-size: 0;
564
+ .semics-booking-widget legend {
565
+ margin: 0 0 0.5rem;
566
+ padding: 0;
567
+ font-size: 0.8125rem;
568
+ font-weight: 700;
569
+ letter-spacing: 0.06em;
570
+ text-transform: uppercase;
571
+ color: var(--_muted);
561
572
  }
573
+ .semics-tickets,
562
574
  .semics-questions {
563
575
  display: grid;
564
576
  gap: 0.75rem;
565
577
  margin: 0;
566
- padding: 0.5rem 0.75rem 0.75rem;
567
- border: 1px solid var(--_border);
568
- border-radius: var(--_radius);
578
+ padding: 0;
579
+ border: 0;
569
580
  min-inline-size: 0;
570
581
  }
571
582
  .semics-check {
@@ -580,51 +591,70 @@ const when = (iso: string) => {
580
591
  min-block-size: 1.25rem;
581
592
  inline-size: 1.25rem;
582
593
  margin: 0;
594
+ accent-color: var(--_accent);
583
595
  }
584
596
  .semics-hint {
585
597
  color: var(--_muted);
586
598
  }
599
+ .semics-picker-field {
600
+ gap: 0.75rem;
601
+ }
587
602
  .semics-picker-nav {
603
+ max-inline-size: var(--events-calendar-max, 26rem);
588
604
  display: flex;
589
605
  flex-wrap: wrap;
590
- align-items: baseline;
591
- gap: 0.25rem 1rem;
606
+ align-items: center;
607
+ gap: 0.5rem;
592
608
  }
593
609
  .semics-picker-month {
594
610
  margin: 0;
595
611
  margin-inline-end: auto;
596
- font-weight: 600;
612
+ font-size: 1.125rem;
613
+ font-weight: 700;
597
614
  }
598
615
  .semics-picker-nav a {
616
+ display: inline-flex;
617
+ align-items: center;
618
+ min-block-size: 2.25rem;
619
+ padding: 0.25rem 0.875rem;
620
+ border: 1px solid var(--_line);
621
+ border-radius: 999px;
599
622
  color: var(--_accent);
600
- min-block-size: 1.5rem;
623
+ font-size: 0.9375rem;
624
+ text-decoration: none;
625
+ }
626
+ .semics-picker-nav a:hover {
627
+ border-color: var(--_accent);
601
628
  }
602
629
  .semics-picker {
603
630
  display: grid;
604
- gap: 0.5rem;
631
+ gap: 1rem;
605
632
  margin: 0;
606
- padding: 0.5rem 0.75rem 0.75rem;
607
- border: 1px solid var(--_border);
608
- border-radius: var(--_radius);
633
+ padding: 0;
634
+ border: 0;
609
635
  min-inline-size: 0;
610
636
  }
611
637
  .semics-picker p {
612
638
  margin: 0;
613
639
  }
640
+ /* Room between the days: cells 6px apart, buttons at least 44px tall. The calendar keeps its size in a wide host column:
641
+ at most `--events-calendar-max` (26rem, days about 54px) while the rest of the widget fills the column (T159). */
614
642
  .semics-calendar {
615
- inline-size: 100%;
616
- border-collapse: collapse;
643
+ inline-size: calc(min(100%, var(--events-calendar-max, 26rem)) + 0.75rem);
644
+ margin: -0.375rem;
645
+ border-collapse: separate;
646
+ border-spacing: 0.375rem;
617
647
  table-layout: fixed;
618
648
  text-align: center;
619
649
  }
620
650
  .semics-calendar th {
621
- padding-block: 0.25rem;
622
- font-weight: 400;
623
- font-size: 0.875rem;
651
+ padding-block: 0 0.25rem;
652
+ font-weight: 600;
653
+ font-size: 0.8125rem;
624
654
  color: var(--_muted);
625
655
  }
626
656
  .semics-calendar td {
627
- padding: 1px;
657
+ padding: 0;
628
658
  }
629
659
  .semics-booking-widget .semics-calendar button,
630
660
  .semics-booking-widget .semics-times button {
@@ -633,11 +663,24 @@ const when = (iso: string) => {
633
663
  border: 1px solid var(--_accent);
634
664
  background: var(--_bg);
635
665
  color: var(--_accent);
666
+ font-weight: 600;
667
+ }
668
+ .semics-booking-widget .semics-calendar button {
669
+ block-size: clamp(2.75rem, 2rem + 2vw, 3.25rem);
670
+ }
671
+ /* Hover is its own, lighter state: a tint and a ring, the text stays the accent; only the chosen day or time
672
+ is filled (T158). */
673
+ .semics-booking-widget .semics-calendar button:not([aria-pressed="true"], .semics-day-full):hover,
674
+ .semics-booking-widget .semics-times button:not([aria-disabled="true"], [aria-checked="true"]):hover {
675
+ background: var(--_tint);
676
+ box-shadow: inset 0 0 0 1px var(--_accent);
677
+ color: var(--_accent);
636
678
  }
637
679
  .semics-booking-widget .semics-calendar button.semics-day-full,
638
680
  .semics-booking-widget .semics-times button[aria-disabled="true"] {
639
- border-color: var(--_border);
681
+ border-color: var(--_line);
640
682
  color: var(--_muted);
683
+ font-weight: 400;
641
684
  text-decoration: line-through;
642
685
  }
643
686
  .semics-booking-widget .semics-times button[aria-disabled="true"] {
@@ -647,39 +690,50 @@ const when = (iso: string) => {
647
690
  .semics-booking-widget .semics-times button[aria-checked="true"] {
648
691
  background: var(--_accent);
649
692
  color: var(--_accent-fg);
693
+ box-shadow: none;
650
694
  }
651
695
  .semics-day-none {
652
- display: block;
653
- padding-block: 0.75rem;
696
+ display: grid;
697
+ place-items: center;
698
+ block-size: clamp(2.75rem, 2rem + 2vw, 3.25rem);
654
699
  color: var(--_muted);
655
700
  }
656
701
  .semics-times {
657
702
  display: grid;
658
- grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
703
+ grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
659
704
  gap: 0.5rem;
660
705
  }
661
706
  .semics-booking-widget .semics-times button {
662
707
  display: grid;
663
708
  justify-items: center;
709
+ padding: 0.5rem;
664
710
  }
665
711
  .semics-places {
666
- font-size: 0.875rem;
712
+ font-size: 0.8125rem;
713
+ font-weight: 400;
667
714
  }
668
715
  .semics-ticket {
669
716
  display: flex;
670
717
  flex-wrap: wrap;
671
718
  align-items: center;
672
719
  justify-content: space-between;
673
- gap: 0.5rem;
674
- padding-block: 0.25rem;
720
+ gap: 0.5rem 1rem;
721
+ padding-block: 0.5rem;
722
+ border-block-end: 1px solid var(--_line);
723
+ }
724
+ .semics-ticket:last-of-type {
725
+ border-block-end: 0;
675
726
  }
676
727
  .semics-ticket label {
677
728
  display: flex;
678
729
  flex-wrap: wrap;
679
- gap: 0 0.5rem;
730
+ gap: 0 0.75rem;
680
731
  flex: 1 1 10rem;
681
732
  min-inline-size: 0;
682
733
  }
734
+ .semics-ticket-name {
735
+ font-weight: 600;
736
+ }
683
737
  .semics-ticket-price,
684
738
  .semics-ticket-soldout {
685
739
  color: var(--_muted);
@@ -690,7 +744,10 @@ const when = (iso: string) => {
690
744
  .semics-field {
691
745
  display: grid;
692
746
  grid-template-columns: minmax(0, 1fr);
693
- gap: 0.25rem;
747
+ gap: 0.375rem;
748
+ }
749
+ .semics-field > label {
750
+ font-weight: 500;
694
751
  }
695
752
  .semics-field select {
696
753
  inline-size: 100%;
@@ -704,7 +761,7 @@ const when = (iso: string) => {
704
761
  }
705
762
  .semics-booking-widget input,
706
763
  .semics-booking-widget select {
707
- padding: 0.375rem 0.5rem;
764
+ padding: 0.5rem 0.75rem;
708
765
  border: 1px solid var(--_border);
709
766
  border-radius: var(--_radius);
710
767
  background: var(--_bg);
@@ -723,7 +780,7 @@ const when = (iso: string) => {
723
780
  display: none;
724
781
  }
725
782
  .semics-form-alert {
726
- padding: 0.5rem 0.75rem;
783
+ padding: 0.75rem 1rem;
727
784
  border: 1px solid var(--_error);
728
785
  border-radius: var(--_radius);
729
786
  }
@@ -731,16 +788,28 @@ const when = (iso: string) => {
731
788
  margin: 0;
732
789
  font-weight: 600;
733
790
  }
791
+ /* The summary above Book. */
734
792
  .semics-total {
793
+ display: flex;
794
+ flex-wrap: wrap;
795
+ justify-content: space-between;
796
+ gap: 0.25rem 1rem;
735
797
  margin: 0;
798
+ padding: 1rem 1.25rem;
799
+ border-radius: var(--_radius);
800
+ background: var(--_tint);
801
+ }
802
+ .semics-total strong {
803
+ font-size: 1.125rem;
736
804
  }
737
805
  .semics-booking-widget button {
738
806
  justify-self: start;
739
- padding: 0.5rem 1.5rem;
807
+ padding: 0.75rem 2rem;
740
808
  border: 0;
741
809
  border-radius: var(--_radius);
742
810
  background: var(--_accent);
743
811
  color: var(--_accent-fg);
812
+ font-weight: 600;
744
813
  cursor: pointer;
745
814
  }
746
815
  .semics-promo-row {
@@ -770,6 +839,14 @@ const when = (iso: string) => {
770
839
  outline: 3px solid var(--_accent);
771
840
  outline-offset: 2px;
772
841
  }
842
+ .semics-visually-hidden {
843
+ position: absolute;
844
+ inline-size: 1px;
845
+ block-size: 1px;
846
+ overflow: hidden;
847
+ clip-path: inset(50%);
848
+ white-space: nowrap;
849
+ }
773
850
  [hidden] {
774
851
  display: none !important;
775
852
  }