/* Amelia in the Savi style (2026-10-13, Majd: "all Amelia styling should match the website").
   Rules: projects/savi-site/design-system.md (colours, type, shape, buttons). Covers the step-by-step booking
   (class dialogs), the event list and its pop-ups, and the customer panel: every Amelia v3 front end sits inside
   .amelia-v2-booking. Amelia writes its colours and fonts as inline CSS variables on the form root and its sizes as
   variables on each component, so these overrides need !important. Loaded by snippet 50 on the redesign pages; at
   launch it has to load wherever Amelia renders (launch checklist in brief.md). */

/* ---------- colours and font ---------- */
.amelia-v2-booking,
.amelia-v2-booking [style*="--am-c-primary"] {
  --am-c-primary: #F3763A !important;
  --am-c-main-heading-text: #2A2F33 !important;
  --am-c-main-text: #2A2F33 !important;
  --am-c-inp-bgr: #FFFFFF !important;
  --am-c-inp-border: #E6DCD2 !important;
  --am-c-inp-text: #2A2F33 !important;
  --am-c-inp-placeholder: #6B6560 !important;
  --am-c-drop-bgr: #FFFFFF !important;
  --am-c-drop-text: #2A2F33 !important;
  --am-c-btn-prim: #F3763A !important;
  --am-c-btn-prim-text: #FFFFFF !important;
  --am-c-btn-sec: #F3763A !important;
  --am-c-btn-sec-text: #F3763A !important;
  --am-c-skeleton-op20: rgba(42, 47, 51, 0.12) !important;
  --am-c-skeleton-op60: rgba(42, 47, 51, 0.3) !important;
  --am-font-family: 'Montserrat', sans-serif !important;
  --am-brad-main: 32px !important;
}
/* booking dialogs are cream, like the site's own pop-ups (white fields on cream). Extra class: the Additional CSS
   (post 1911) sets white with the same selector for the Amelia 9.9 see-through fix and loads later */
.amelia-v2-booking.am-dialog-popup.el-overlay,
.amelia-v2-booking.am-dialog-popup.el-overlay [style*="--am-c-main-bgr"] {
  --am-c-main-bgr: #FBF4EC !important;
}
.amelia-v2-booking,
.amelia-v2-booking .el-dialog__title { font-family: 'Montserrat', sans-serif; }

/* ---------- dialog ---------- */
.amelia-v2-booking.el-overlay { background-color: rgba(43, 26, 18, 0.55) !important; }
@media (min-width: 768px) {
  .amelia-v2-booking .el-dialog { border-radius: 32px !important; }
}
/* step titles ("Date & Time", "Your Information"): Synthmesc in orange, like every title on cream */
.amelia-v2-booking .el-dialog__title,
.amelia-v2-booking .am-fs__main-heading-inner-title,
.amelia-v2-booking .am-fs__main-heading > span,
.amelia-v2-booking .am-fs__main-heading-inner-title * {
  font-family: 'Synthmesc', sans-serif !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px;
  font-size: 22px !important;
  line-height: 1.05 !important;
  color: #F3763A !important;
}
.amelia-v2-booking .el-dialog__headerbtn { width: 48px !important; height: 48px !important; }
.amelia-v2-booking .el-dialog__headerbtn .el-dialog__close { color: #2A2F33 !important; font-size: 20px; }

/* ---------- buttons: gooey-style pills (Synthmesc caps, orange; hover white body, orange text) ---------- */
.amelia-v2-booking .am-button {
  --am-rad-btn: 999px !important;
  --am-h-btn: 48px !important;
  --am-fs-btn: 16px !important;
  --am-fw-btn: 400 !important;
  --am-lh-btn: 1 !important;
  --am-padd-btn: 0 28px !important;
  font-family: 'Synthmesc', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease !important;
}
.amelia-v2-booking .am-button--filled {
  --am-c-btn-bgr: #F3763A !important;
  --am-c-btn-border: #F3763A !important;
  --am-c-btn-text: #FFFFFF !important;
  --am-c-btn-shadow: transparent !important;
}
.amelia-v2-booking .am-button--plain {
  --am-c-btn-bgr: transparent !important;
  --am-c-btn-border: #F3763A !important;
  --am-c-btn-text: #F3763A !important;
  border-width: 2px !important;
}
@media (hover: hover) {
  .amelia-v2-booking .am-button--filled:not(.is-disabled):not([disabled]):hover {
    --am-c-btn-bgr: #FFFFFF !important;
    --am-c-btn-text: #F3763A !important;
    background-color: #FFFFFF !important;
    color: #F3763A !important;
  }
  .amelia-v2-booking .am-button--plain:not(.is-disabled):not([disabled]):hover {
    --am-c-btn-bgr: #F3763A !important;
    --am-c-btn-text: #FFFFFF !important;
    background-color: #F3763A !important;
    color: #FFFFFF !important;
  }
}
/* Synthmesc's lowercase o is a small ring: anything set in it must be uppercase, and Amelia resets text-transform on inner spans */
.amelia-v2-booking .am-button__inner { font-family: 'Synthmesc', sans-serif !important; font-weight: 400 !important; text-transform: uppercase !important; }
/* icon-only buttons (back arrow, month arrows): round, no caps padding */
.amelia-v2-booking .am-button--micro,
.amelia-v2-booking .am-button.am-button--icon-only,
.amelia-v2-booking .am-button.is-icon-only,
.amelia-v2-booking .am-advsc__header .am-button {
  --am-padd-btn: 0 !important;
  --am-h-btn: 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  border-width: 1.5px !important;
}
.amelia-v2-booking .am-button--micro { --am-h-btn: 32px !important; width: 32px !important; min-width: 32px !important; }
/* month arrows: Amelia joins them in a button group with square inner corners; two separate 44px circles like the back arrow (Gullmai 2026-10-30) */
.amelia-v2-booking .am-advsc__header .am-button-group { display: flex !important; gap: 8px; flex-shrink: 0; }
.amelia-v2-booking .am-advsc__header .am-button-group .am-button {
  --am-h-btn: 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1.5px solid #F3763A !important;
}
/* events calendar (Calendar view pop-up): the button padding above squeezed the arrow icons to 0px (Amelia clips button spans), so the circles looked empty; round, Today's height */
.amelia-v2-booking .am-ecs__header-actions .am-button.is-icon-only {
  --am-h-btn: 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  border-radius: 999px !important;
  border: 1.5px solid #F3763A !important;
}
.amelia-v2-booking .am-ecs__header-actions .am-button.is-icon-only span { overflow: visible !important; font-size: 16px; }
/* the wider arrows cut "November" to "Novemb…" on phones: the year select only needs room for "2026" */
.amelia-v2-booking .am-advsc__header .am-select-wrapper + .am-select-wrapper { flex: 0 0 108px !important; max-width: 108px !important; }

/* ---------- fields ---------- */
.amelia-v2-booking {
  --am-rad-inp: 16px;
}
.amelia-v2-booking .el-input__wrapper,
.amelia-v2-booking .el-select__wrapper,
.amelia-v2-booking .el-textarea__inner,
.amelia-v2-booking .am-input-phone .el-input__wrapper,
.amelia-v2-booking .el-input-number {
  --am-rad-inp: 16px !important;
  --am-rad-input: 16px !important;
  --am-rad-select: 16px !important;
  --am-rad-inp-number: 16px !important;
  border-radius: 16px !important;
}
.amelia-v2-booking .el-select__wrapper,
.amelia-v2-booking .el-input__wrapper { min-height: 48px; }
.amelia-v2-booking .el-form-item__label { font-weight: 600 !important; color: #2A2F33 !important; }
/* phone: country picker + number are two joined fields (Maz input) */
.amelia-v2-booking .am-input-phone .m-input-wrapper { border-radius: 0 16px 16px 0 !important; min-height: 48px; }
.amelia-v2-booking .am-input-phone .m-input-phone-number__country-select .m-input-wrapper { border-radius: 16px 0 0 16px !important; }

/* ---------- calendar and time slots ---------- */
.amelia-v2-booking .am-advsc__dayGridMonth-cell .fc-daygrid-day-frame,
.amelia-v2-booking .am-advsc__slots-item {
  --am-rad-advsc-slot: 999px !important;
  border-radius: 999px !important;
}
.amelia-v2-booking .am-advsc__dayGridMonth-cell .fc-daygrid-day-frame { border-radius: 16px !important; }
/* the table cell around the month grid has a grey fill that showed as a square band behind the rounded days */
.amelia-v2-booking .am-advsc .fc-scrollgrid td { background: transparent !important; }

/* ---------- cards inside the form (people, bundles, extras, summaries) ---------- */
.amelia-v2-booking .am-fs__ps-item,
.amelia-v2-booking [class*="am-fs__"][class*="-card"],
.amelia-v2-booking .am-fs__bringing,
.amelia-v2-booking .am-slide-popup__block-inner {
  border-radius: 24px !important;
}
.amelia-v2-booking .am-slide-popup__block { border-radius: 32px 32px 0 0 !important; }
/* event list cards (/workshops/) */
.amelia-v2-booking .am-ec { border-radius: 24px !important; }

/* Amelia draws a random-coloured initials tile ("WTC") for services without a picture: off-brand, and the name is
   right beside it */
.amelia-v2-booking .am-fs__pis-service > img[src^="data:image"] { display: none !important; }

/* boxes Amelia draws with 8px corners: "Additional people" and the bundle's "includes" box. The includes box is a
   heading (top + sides) over a content block (all four sides), so each piece gets its half of the radius; rounding
   the outer item cut the borders (2026-10-13) */
.amelia-v2-booking .am-fs__bringing-content,
.amelia-v2-booking .am-collapse-item__heading { border-radius: 24px !important; }
.amelia-v2-booking .am-collapse-item__heading { padding: 8px 16px !important; }
.amelia-v2-booking .am-collapse-item__heading-active { border-radius: 24px 24px 0 0 !important; }
.amelia-v2-booking .am-collapse-item__content { border-radius: 0 0 24px 24px !important; }
/* extras have a "Learn More" bar under the box instead: heading keeps the top corners, the bar takes the bottom */
.amelia-v2-booking .am-collapse-item:has(> .am-collapse-item__trigger) > .am-collapse-item__heading { border-radius: 24px 24px 0 0 !important; }
.amelia-v2-booking .am-collapse-item:has(> .am-collapse-item__trigger) > .am-collapse-item__content { border-radius: 0 !important; }
.amelia-v2-booking .am-collapse-item__trigger { border-radius: 0 0 24px 24px !important; }
/* the bundle sheet's close x: Amelia focuses it on open, and its focus ring is a 4px-cornered box */
.amelia-v2-booking .am-fs__popup-x {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50% !important;
}
/* one teacher account per class type (Amelia needs an employee; they aren't people to choose), so no employee rows */
.amelia-v2-booking .am-fs__pis-service-info > span:first-child,
.amelia-v2-booking .am-fs__pis-service-info > img { display: none !important; }

/* ---------- event list (Events page, 2026-10-13 rev c) ----------
   Amelia sets each card's colours and an inset box-shadow bar in the event's own colour (pink, blue, orange) as inline
   styles, so these need !important. One white card per date, no bar, no shadow. Desktop: a full-width row (big 4:3
   photo, date, name + short description, price over the button). Phones: the gift card's shape (photo on top, inset
   12px, about half the card, text and price + button underneath). Date and price in Synthmesc orange; seats left muted
   ("Open" is implied; "Full" stays, in orange). The description (m-ec-desc) and the 8-at-a-time "Show more dates"
   button come from evlist.js. Card markup order is period, image, info, actions: the grid areas put them in place.
   Scoped to the list (.am-els__wrapper): the "Read more" pop-up reuses .am-ec for its header, without a photo. */
.amelia-v2-booking .am-elf { max-width: none !important; padding: 0 !important; }
.amelia-v2-booking .am-els__wrapper { display: flex; flex-direction: column; gap: 16px; }
.amelia-v2-booking .am-els__wrapper .am-ec {
  --am-c-ec-primary: #F3763A !important;
  --am-c-ec-success: #6B6560 !important;
  --am-c-ec-text: #2A2F33 !important;
  --am-c-ec-text-op90: #2A2F33 !important;
  --am-c-ec-text-op80: #6B6560 !important;
  display: grid !important;
  grid-template-columns: 264px 108px minmax(0, 1fr) auto;
  grid-template-areas: 'img period info act';
  gap: 0 28px !important;
  align-items: center;
  box-shadow: none !important;
  border-radius: 32px !important;
  margin: 0 !important;
  padding: 12px 32px 12px 12px !important;
}
.amelia-v2-booking .am-els__wrapper .am-ec.m-ec-hide { display: none !important; }
/* 32px card, 12px inset: 20px keeps the corners concentric */
.amelia-v2-booking .am-els__wrapper .am-ec__image {
  grid-area: img; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; margin: 0 !important;
  border-radius: 20px !important; background-size: cover !important; background-position: center !important;
}
.amelia-v2-booking .am-els__wrapper .am-ec__period { grid-area: period; width: auto !important; margin: 0 !important; }
.amelia-v2-booking .am-els__wrapper .am-ec__period-date { display: flex !important; align-items: baseline; flex-wrap: wrap; gap: 0 4px; width: auto !important; }
.amelia-v2-booking .am-els__wrapper .am-ec__period-date__day {
  font-family: 'Synthmesc', sans-serif !important; font-weight: 400 !important; font-size: 48px !important; line-height: 1 !important;
  color: #F3763A !important; width: 100%;
}
.amelia-v2-booking .am-els__wrapper .am-ec__period-date__month,
.amelia-v2-booking .am-els__wrapper .am-ec__period-date__year { font-size: 15px !important; font-weight: 600 !important; color: #2A2F33 !important; }
.amelia-v2-booking .am-els__wrapper .am-ec__period-time { font-size: 15px !important; font-weight: 500 !important; color: #6B6560 !important; margin: 2px 0 0 !important; }
.amelia-v2-booking .am-els__wrapper .am-ec__info { grid-area: info; width: auto !important; min-width: 0; margin: 0 !important; }
.amelia-v2-booking .am-els__wrapper .am-ec__info-name { font-size: 21px !important; font-weight: 700 !important; line-height: 1.25 !important; color: #2A2F33 !important; margin: 0 !important; }
.amelia-v2-booking .m-ec-desc {
  margin: 6px 0 0 !important; max-width: 60ch; font-family: 'Montserrat', sans-serif !important; font-size: 16px !important;
  font-weight: 400 !important; line-height: 1.5 !important; color: #6B6560 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.amelia-v2-booking .am-els__wrapper .am-ec__info-other { margin: 8px 0 0 !important; }
.amelia-v2-booking .am-els__wrapper .am-ec__info-availability.open { display: none !important; }
.amelia-v2-booking .am-els__wrapper .am-ec__info-availability { color: #F3763A !important; font-size: 14px !important; font-weight: 700 !important; }
.amelia-v2-booking .am-els__wrapper .am-ec__info-capacity * { font-size: 14px !important; color: #6B6560 !important; }
.amelia-v2-booking .am-els__wrapper .am-ec__actions {
  grid-area: act; display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 12px;
  width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
}
.amelia-v2-booking .am-els__wrapper .am-ec__actions-price, .amelia-v2-booking .am-els__wrapper .am-ec__actions-price * {
  font-family: 'Synthmesc', sans-serif !important; font-weight: 400 !important; font-size: 34px !important; line-height: 1 !important;
  color: #F3763A !important; margin: 0 !important;
}
.amelia-v2-booking .am-els__wrapper .am-ec__actions-btn { margin: 0 !important; }
/* "inc. VAT" under the price (evlist.js), Montserrat like the shop cards; heavier selector than the price's own "*" rule */
.amelia-v2-booking .am-els__wrapper .am-ec__actions-price .m-ec-vat {
  display: block; margin: 6px 0 0 !important; font-family: 'Montserrat', sans-serif !important; font-weight: 500 !important;
  font-size: 13px !important; line-height: 1 !important; color: #6B6560 !important; text-transform: none !important; text-align: right;
}
/* Amelia's price box lays its children out in a row, so the VAT line sat beside the price: stack them */
.amelia-v2-booking .am-els__wrapper .am-ec__actions-price:has(.m-ec-vat) { display: flex !important; flex-direction: column !important; align-items: flex-end !important; }
@media (max-width: 767px) {
  .amelia-v2-booking .am-els__wrapper .am-ec__actions-price:has(.m-ec-vat) { align-items: flex-start !important; }
  .amelia-v2-booking .am-els__wrapper .am-ec__actions-price .m-ec-vat { text-align: left; }
}
@media (max-width: 1100px) {
  .amelia-v2-booking .am-els__wrapper .am-ec { grid-template-columns: 200px 92px minmax(0, 1fr) auto; gap: 0 20px !important; padding-right: 24px !important; }
  .amelia-v2-booking .am-els__wrapper .am-ec__period-date__day { font-size: 40px !important; }
}
@media (max-width: 767px) {
  .amelia-v2-booking .am-els__wrapper { gap: 20px; }
  .amelia-v2-booking .am-els__wrapper .am-ec {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: 'img' 'period' 'info' 'act';
    gap: 0 !important; padding: 12px 12px 16px !important; align-items: start;
  }
  .amelia-v2-booking .am-els__wrapper .am-ec__image { margin: 0 0 16px !important; }
  .amelia-v2-booking .am-els__wrapper .am-ec__period, .amelia-v2-booking .am-els__wrapper .am-ec__info, .amelia-v2-booking .am-els__wrapper .am-ec__actions { padding: 0 8px !important; }
  .amelia-v2-booking .am-els__wrapper .am-ec__period { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 6px !important; }
  .amelia-v2-booking .am-els__wrapper .am-ec__period-date__day { font-size: 30px !important; width: auto; }
  .amelia-v2-booking .am-els__wrapper .am-ec__period-date__year { display: none !important; }
  .amelia-v2-booking .am-els__wrapper .am-ec__period-time { margin: 0 !important; }
  .amelia-v2-booking .am-els__wrapper .am-ec__info-name { font-size: 19px !important; }
  .amelia-v2-booking .m-ec-desc { font-size: 15px !important; }
  .amelia-v2-booking .am-els__wrapper .am-ec__actions {
    flex-direction: row !important; justify-content: space-between !important; align-items: center !important; margin: 16px 0 0 !important;
  }
  .amelia-v2-booking .am-els__wrapper .am-ec__actions-price, .amelia-v2-booking .am-els__wrapper .am-ec__actions-price * { font-size: 30px !important; }
}
/* the "Read more" pop-up's header (.am-eli__header .am-ec): Amelia's own layout, the list's type and colours */
.amelia-v2-booking .am-eli__header .am-ec {
  --am-c-ec-primary: #F3763A !important; --am-c-ec-success: #6B6560 !important; --am-c-ec-text: #2A2F33 !important;
  --am-c-ec-text-op90: #2A2F33 !important; --am-c-ec-text-op80: #6B6560 !important;
}
.amelia-v2-booking .am-eli__header .am-ec__period-date__day {
  font-family: 'Synthmesc', sans-serif !important; font-weight: 400 !important; font-size: 36px !important; line-height: 1 !important; color: #F3763A !important;
}
.amelia-v2-booking .am-eli__header .am-ec__info-name { font-weight: 700 !important; color: #2A2F33 !important; }
.amelia-v2-booking .am-eli__header .am-ec__info-availability.open { display: none !important; }
.amelia-v2-booking .am-eli__header .am-ec__actions-price, .amelia-v2-booking .am-eli__header .am-ec__actions-price *,
.amelia-v2-booking .am-eli__header .am-ec__info-price {
  font-family: 'Synthmesc', sans-serif !important; font-weight: 400 !important; font-size: 28px !important; line-height: 1.1 !important; color: #F3763A !important;
}
/* all upcoming dates arrive at once (evlist.js), so Amelia's page numbers go; "Show more dates" reveals 8 at a time */
.m-evlist.m-evlist-all .am-els__pagination { display: none !important; }
.m-ev-more {
  display: block; margin: 32px auto 0; min-height: 52px; padding: 16px 36px; cursor: pointer;
  background: transparent; color: #F3763A; border: 2px solid #F3763A; border-radius: 999px;
  font-family: 'Synthmesc', sans-serif; font-weight: 400; font-size: 18px; line-height: 1; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}
.m-ev-more[hidden] { display: none; }
@media (hover: hover) { .m-ev-more:hover { background: #F3763A; color: #FFFFFF; } }
.m-ev-more:focus-visible { outline: 2px solid #F3763A; outline-offset: 3px; }

/* ---------- My account (page 129, Amelia customer panel) ---------- */
/* Amelia puts a 100px / 128px margin on the panel wrapper: a big empty gap under the title band */
.m-account-panel .amelia-v2-booking .am-cap__wrapper { margin: 0 auto !important; max-width: 1120px; }
/* logged in: sidebar + bookings card as one rounded panel (the sidebar's outer corners were square) */
.m-account-panel .amelia-v2-booking .am-cap__wrapper:not(.am-auth) { border-radius: 32px !important; overflow: hidden; }
/* logged out: the "Send Access Link" card in the site's card shape */
.m-account-panel .amelia-v2-booking .am-asi { border-radius: 24px !important; margin: 0 auto !important; }
