/* The components of the booking web, as the app draws them
   (lib/common/ui/widgets). Every color, font, radius and duration is a token
   of css/tokens.css, which the build makes from the brand book: nothing here
   is of a brand. Light, as the app is by default; mobile first, and one
   centered column on a desktop. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-on-surface);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: inherit;
}

button:disabled {
  cursor: default;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.noscript {
  padding: 20px;
}

/* ---- Type ------------------------------------------------------------------ */

.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
}

.display-number {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-variant-numeric: tabular-nums;
}

.headline {
  font-size: 28px;
  line-height: calc(34px * var(--display-line));
}

.section-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}

.muted {
  color: var(--c-on-surface-variant);
  font-size: 14px;
  line-height: 20px;
}

.small {
  font-size: 12px;
  line-height: 16px;
}

.center {
  display: flex;
  justify-content: center;
}

/* ---- The page ---------------------------------------------------------------- */

.app {
  min-height: 100vh;
  min-height: 100dvh;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.content {
  width: 100%;
  max-width: calc(640px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 16px var(--gutter) 32px;
  --gutter: 20px;
}

.with-bottom-bar .content {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

@media (min-width: 600px) {
  .content,
  .bottom-bar,
  .top-bar {
    --gutter: 24px;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gap-xl {
  height: 12px;
}

.top-bar {
  --gutter: 20px;
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  max-width: calc(640px + 2 * var(--gutter));
  width: 100%;
  margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top)) calc(var(--gutter) - 12px) 8px;
  background: var(--c-surface);
}

.top-bar-title {
  text-align: center;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.top-bar-title:focus {
  outline: none;
}

.top-bar-space {
  width: 48px;
}

.icon-button {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--c-on-surface);
}

.icon-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--c-on-surface) 6%, transparent);
}

.icon-button:disabled {
  color: color-mix(in srgb, var(--c-on-surface) 38%, transparent);
}

.icon {
  flex: none;
}

/* ---- Buttons (AppButton) ---------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  min-width: 52px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  font-size: 15px;
  line-height: 20px;
  font-weight: var(--button-weight);
  text-transform: var(--button-case);
  letter-spacing: var(--button-tracking);
  white-space: nowrap;
  transition: transform var(--motion-short) cubic-bezier(0.2, 0, 0, 1), opacity var(--motion-short);
}

.button-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.button:active:not(:disabled) {
  transform: scale(0.96);
  opacity: 0.85;
}

.button-expand {
  width: 100%;
}

.button-md {
  min-height: 44px;
}

.button-primary {
  background: var(--c-primary);
  color: var(--c-on-primary);
}

.button-text {
  color: var(--c-primary);
}

.button-on-brand {
  background: var(--brand-glass);
  color: var(--c-on-brand);
}

.button-on-brand-strong {
  background: var(--c-on-brand);
  color: var(--on-brand-strong-text, var(--c-surface-raised));
}

[data-concept="urban"] .button-on-brand-strong {
  color: var(--c-primary-container);
}

.button-primary:hover:not(:disabled),
.button-on-brand-strong:hover:not(:disabled) {
  box-shadow: inset 0 0 0 100px color-mix(in srgb, currentColor 8%, transparent);
}

.button-text:hover:not(:disabled) {
  background: color-mix(in srgb, var(--c-primary) 6%, transparent);
}

.button:disabled:not(.is-loading) {
  background: color-mix(in srgb, var(--c-on-surface) 12%, transparent);
  color: color-mix(in srgb, var(--c-on-surface) 38%, transparent);
}

.button-text:disabled:not(.is-loading) {
  background: transparent;
}

.is-loading {
  cursor: progress;
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.2px solid currentColor;
  border-right-color: transparent;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Brand surface (BrandSurface) ------------------------------------------- */

.brand-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--brand-gradient);
  color: var(--c-on-brand);
  border-radius: var(--radius-lg);
}

.brand-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--brand-texture);
  background-size: cover;
  background-position: center;
  opacity: var(--brand-texture-opacity);
  pointer-events: none;
}

[data-ornament="frame"] .brand-surface:not(.done) {
  box-shadow: inset 0 0 0 1px var(--c-outline-variant);
}

[data-ornament="frame"] .brand-surface:not(.done)::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid color-mix(in srgb, var(--c-ornament) 55%, transparent);
  border-radius: max(0px, calc(var(--radius-lg) - 5px));
  pointer-events: none;
}

/* ---- The start ------------------------------------------------------------------ */

.home-head {
  display: flex;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top)) 20px 4px;
}

.logo {
  width: 150px;
  height: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 28px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 24px 24px;
  margin-top: 8px;
}

.hero-title {
  font-size: 44px;
  line-height: calc(48px * var(--display-line));
  max-width: 12ch;
}

.hero-title:focus {
  outline: none;
}

.hero-text {
  font-size: 16px;
  line-height: 24px;
  max-width: 30ch;
  opacity: 0.85;
  margin-bottom: 12px;
}

.card {
  background: var(--c-surface-raised);
  border: 1px solid var(--c-outline-variant);
  border-radius: var(--radius-md);
}

.door {
  margin-top: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.door-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}

.door-text {
  color: var(--c-on-surface-variant);
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 8px;
}

.legal-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 24px 0 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--c-on-surface-variant);
}

.legal-footer a {
  padding: 12px 0;
}

/* The stores. */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store {
  flex: 1 1 220px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 16px;
  border-radius: var(--radius-control);
  background: var(--c-primary);
  color: var(--c-on-primary);
  text-decoration: none;
}

.stores-on-brand .store {
  background: var(--c-on-brand);
  color: var(--c-surface-raised);
}

[data-concept="urban"] .stores-on-brand .store {
  color: var(--c-primary-container);
}

.store:active {
  transform: scale(0.97);
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store-caption {
  font-size: 11px;
  line-height: 14px;
  opacity: 0.85;
}

.store-name {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

/* ---- Accordion (AppAccordion) and its choices ---------------------------------------- */

.accordion {
  background: var(--c-surface-raised);
  border: 1px solid var(--c-outline-variant);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--motion-short);
}

.accordion.is-open {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 0.5px var(--c-primary);
}

.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  min-height: 64px;
}

.accordion-head:active:not(:disabled) {
  opacity: 0.6;
}

.accordion-head:focus-visible {
  outline-offset: -3px;
}

.accordion.is-disabled .accordion-head {
  opacity: 0.5;
}

.accordion-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-secondary-container);
  color: var(--c-on-secondary-container);
}

.accordion-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.accordion-label {
  font-size: 11px;
  line-height: 16px;
  font-weight: var(--label-weight);
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  color: var(--c-on-surface-variant);
}

.accordion-summary {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.accordion-chevron {
  color: var(--c-on-surface-variant);
  display: grid;
  transition: transform var(--motion-medium) ease-in-out;
}

.accordion.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 4px 8px;
}

.accordion-body.animate-in {
  animation: unfold var(--motion-medium) ease-in-out;
  transform-origin: top;
}

@keyframes unfold {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px 10px 12px;
}

.choice:hover:not(:disabled):not(.is-selected) {
  background: color-mix(in srgb, var(--c-on-surface) 4%, transparent);
}

.choice.is-selected {
  background: var(--c-secondary-container);
  color: var(--c-on-secondary-container);
}

.choice:focus-visible {
  outline-offset: -2px;
}

.choice:disabled {
  opacity: 0.6;
}

.mark {
  flex: none;
  color: var(--c-outline);
}

.mark-on {
  color: var(--c-primary);
}

.mark-tick {
  stroke: var(--c-on-primary);
}

.choice-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.choice-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.choice-name {
  font-size: 16px;
  line-height: 24px;
}

.choice-subtitle {
  font-size: 12px;
  line-height: 16px;
  color: var(--c-on-surface-variant);
}

.choice.is-selected .choice-subtitle {
  color: var(--c-on-secondary-container);
}

.choice-trailing {
  flex: none;
}

.price {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.panel-error {
  padding: 4px 8px;
}

.choices-placeholder {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

/* ---- Avatars (AppAvatar) --------------------------------------------------------------- */

.avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: var(--c-secondary-container);
  color: var(--c-on-secondary-container);
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-md {
  width: 40px;
  height: 40px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initial {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  line-height: 1;
}

.avatar-sm .avatar-initial {
  font-size: 18px;
}

.avatar-md .avatar-initial {
  font-size: 22px;
}

/* A cameo: a circle inside a fine ring of the ornament. */
[data-avatar="cameo"] .avatar {
  border-radius: 50%;
  background-clip: content-box;
  padding: 3px;
  box-shadow: inset 0 0 0 1px var(--c-ornament, var(--c-outline));
}

[data-avatar="cameo"] .avatar-sm {
  padding: 2.5px;
}

[data-avatar="cameo"] .avatar img {
  border-radius: 50%;
}

.bk-0 { background-color: var(--c-bookable-0); color: var(--c-on-bookable-0); }
.bk-1 { background-color: var(--c-bookable-1); color: var(--c-on-bookable-1); }
.bk-2 { background-color: var(--c-bookable-2); color: var(--c-on-bookable-2); }
.bk-3 { background-color: var(--c-bookable-3); color: var(--c-on-bookable-3); }
.bk-4 { background-color: var(--c-bookable-4); color: var(--c-on-bookable-4); }
.bk-5 { background-color: var(--c-bookable-5); color: var(--c-on-bookable-5); }
.bk-6 { background-color: var(--c-bookable-6); color: var(--c-on-bookable-6); }
.bk-7 { background-color: var(--c-bookable-7); color: var(--c-on-bookable-7); }

/* ---- Concept badge (ConceptBadge) and the sticker "New" (NewSticker) ---------------------- */

.concept-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border: 0.5px solid;
}

.concept-badge {
  font-family: var(--badge-font);
  font-weight: var(--badge-weight);
  text-transform: var(--badge-case);
  background: var(--badge-shade);
  color: var(--badge-accent);
  border-color: color-mix(in srgb, var(--badge-accent) 40%, transparent);
  border-radius: var(--badge-radius);
}

.concept-mark {
  width: 10px;
  height: 10px;
  background: currentColor;
  -webkit-mask: var(--badge-mark) center / contain no-repeat;
  mask: var(--badge-mark) center / contain no-repeat;
}

.concept-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.new-sticker {
  --s: 12px;
  display: inline-block;
  padding-right: calc(var(--s) * 0.2);
  padding-bottom: calc(var(--s) * 0.2);
  transform: rotate(-5.04deg);
  line-height: 0;
}

.new-sticker > span {
  display: inline-block;
  padding: calc(var(--s) * 0.08) calc(var(--s) * 0.42);
  border: max(1.5px, calc(var(--s) * 0.13)) solid #141414;
  border-radius: calc(var(--s) * 0.22);
  background: #ff3d8b;
  color: #141414;
  font-family: var(--font-sticker);
  font-size: var(--s);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: calc(var(--s) * 0.2) calc(var(--s) * 0.2) 0 -0.75px #ffe14a, calc(var(--s) * 0.2) calc(var(--s) * 0.2) 0 0.75px #141414;
}

.new-sticker-big {
  --s: 16px;
}

/* ---- Suggestions (SuggestionCard, compact) ---------------------------------------------- */

.section-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 20px 4px 8px;
  min-width: 0;
}

.section-label-text {
  flex: none;
  font-size: 11px;
  line-height: 16px;
  font-weight: var(--label-weight);
  text-transform: uppercase;
  letter-spacing: max(0.8px, var(--label-tracking));
  color: var(--c-on-surface-variant);
}

.section-label-ornament .section-label-text {
  color: var(--c-ornament-text, var(--c-on-surface-variant));
}

.section-label-trailing {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 16px;
  color: var(--c-on-surface-variant);
}

.suggestions {
  margin-top: 4px;
}

.strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
}

@media (min-width: 700px) {
  .strip {
    margin: 0;
    padding: 2px 0 6px;
  }
}

.strip::-webkit-scrollbar {
  display: none;
}

.suggestion {
  flex: none;
  width: 248px;
  min-height: 152px;
  display: block;
  text-align: left;
  scroll-snap-align: start;
  transition: transform var(--motion-short), opacity var(--motion-short);
}

.suggestion:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.suggestion-portrait {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 38.5%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 38.5%, #000 70%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.suggestion-portrait img,
.done-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  filter: grayscale(1) contrast(1.3);
}

/* The portrait in the two inks of the surface: its grays multiply the color
   of the brand (the blend is of the masked portrait, not of the picture, so
   that it reaches the surface under it). */
.suggestion-portrait,
.done-portrait {
  mix-blend-mode: multiply;
}

[data-concept="classic"] .suggestion-portrait,
[data-concept="classic"] .done-portrait {
  opacity: 0.55;
}

.portrait-initial {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  color: color-mix(in srgb, var(--c-on-brand) 16%, transparent);
  font-size: 140px;
  line-height: 1;
}

.suggestion-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  min-height: 152px;
}

.suggestion-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.suggestion-day {
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--label-weight);
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  opacity: 0.8;
}

.price-tag {
  background: var(--brand-glass);
  border-radius: var(--radius-control);
  padding: 2px 8px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.suggestion-time {
  font-size: 34px;
  line-height: 1.05;
  margin-top: 2px;
}

.suggestion-with {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.suggestion-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 16px;
  opacity: 0.8;
  margin-top: 2px;
}

.suggestion-meta .concept-badge {
  opacity: 1;
}

/* The first one shines, three times. */
.glint-band {
  position: absolute;
  inset: -50% auto -50% -60%;
  width: 40%;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg) translateX(-200%);
  animation: glint 1200ms 1600ms 3 ease-in-out;
  pointer-events: none;
}

@keyframes glint {
  0% {
    transform: rotate(25deg) translateX(-100%);
  }
  50%,
  100% {
    transform: rotate(25deg) translateX(700%);
  }
}

/* ---- Calendar (AppCalendar) ----------------------------------------------------------- */

.calendar {
  padding: 8px;
}

.calendar-head {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.calendar-month {
  flex: 1;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.weekdays {
  margin: 8px 0 4px;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
  font-weight: var(--label-weight);
  color: var(--c-on-surface-variant);
}

.day-cell {
  height: 44px;
  margin: 2px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.day-cell:hover:not(:disabled):not(.is-selected) {
  background: color-mix(in srgb, var(--c-on-surface) 6%, transparent);
}

.day-number {
  font-size: 16px;
  line-height: 22px;
}

.day-cell.is-today {
  box-shadow: inset 0 0 0 1.5px var(--c-on-surface);
}

.day-cell.is-today .day-number,
.day-cell.is-selected .day-number {
  font-weight: 600;
}

.day-cell.is-selected {
  background: var(--c-primary);
  color: var(--c-on-primary);
  box-shadow: none;
}

.day-cell:disabled {
  color: color-mix(in srgb, var(--c-on-surface) 38%, transparent);
}

.day-cell:disabled .dots {
  visibility: hidden;
}

.dots {
  height: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.dots-high { color: var(--c-availability-high); }
.dots-mid { color: var(--c-availability-mid); }
.dots-low { color: var(--c-availability-low); }
.dots-none { color: var(--c-outline); }
.is-selected .dots { color: var(--c-on-primary); }

.calendar-veiled {
  position: relative;
}

.calendar-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  background: color-mix(in srgb, var(--c-surface) 82%, transparent);
  border-radius: var(--radius-md);
}

/* ---- Slots (TimeSlotGrid) ---------------------------------------------------------------------- */

.slots {
  margin-top: 4px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.slot-grid.with-detail {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.slot {
  position: relative;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  background: var(--c-surface-raised);
  box-shadow: inset 0 0 0 1px var(--c-outline-variant);
  transition: background var(--motion-short), color var(--motion-short);
}

.slot.has-detail {
  height: 56px;
}

.slot-time {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.slot-detail {
  max-width: 100%;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 14px;
  font-weight: var(--label-weight);
  opacity: 0.8;
}

.slot.is-recommended {
  background: var(--c-success-container);
  color: var(--c-on-success-container);
  box-shadow: none;
}

[data-concept="classic"] .slot.is-recommended {
  background: var(--c-surface-raised);
  color: var(--c-on-surface);
  box-shadow: inset 0 0 0 1px var(--c-ornament);
}

.slot-star {
  position: absolute;
  top: 6px;
  right: 10px;
  display: grid;
  color: var(--c-ornament-text, currentColor);
}

.slot.is-selected {
  background: var(--c-primary);
  color: var(--c-on-primary);
  box-shadow: none;
}

.slot.is-selected .slot-star {
  color: currentColor;
}

.slot:hover:not(.is-selected) {
  box-shadow: inset 0 0 0 1px var(--c-outline);
}

.segmented {
  display: flex;
  border-bottom: 1px solid var(--c-outline-variant);
  margin-top: 8px;
}

.segment {
  flex: 1;
  min-height: 44px;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--label-weight);
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  color: var(--c-on-surface-variant);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.segment.is-selected {
  color: var(--c-on-surface);
  border-bottom-color: var(--c-primary);
}

/* ---- Bottom bar (AppBottomBar, WizardSummary) ----------------------------------------------- */

.bottom-bar {
  --gutter: 20px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: var(--c-surface-raised);
  border-top: 1px solid var(--c-outline-variant);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
}

.bottom-bar-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-text {
  min-width: 0;
}

.summary-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-subtitle {
  font-size: 12px;
  line-height: 16px;
  color: var(--c-on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Banners (AppBanner) ---------------------------------------------------------------- */

.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius-md);
  border: 1px solid;
}

.banner-badge {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 5px;
}

.banner-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.banner-message {
  font-size: 14px;
  line-height: 20px;
}

.banner-action {
  align-self: flex-start;
  min-height: 40px;
  font-size: 12px;
  font-weight: var(--button-weight);
  text-transform: var(--button-case);
  letter-spacing: var(--button-tracking);
}

.banner-neutral {
  background: var(--c-surface-container-high);
  color: var(--c-on-surface);
  border-color: color-mix(in srgb, var(--c-on-surface) 12%, transparent);
}

.banner-neutral .banner-badge {
  background: var(--c-on-surface);
  color: var(--c-surface);
}

.banner-warning {
  background: var(--c-warning-container);
  color: var(--c-on-warning-container);
  border-color: color-mix(in srgb, var(--c-warning) 22%, transparent);
}

.banner-warning .banner-badge {
  background: var(--c-warning);
  color: var(--c-on-warning);
}

.banner-danger {
  background: var(--c-danger-container);
  color: var(--c-on-danger-container);
  border-color: color-mix(in srgb, var(--c-danger) 22%, transparent);
}

.banner-danger .banner-badge {
  background: var(--c-danger);
  color: var(--c-on-danger);
}

.banner-success {
  background: var(--c-success-container);
  color: var(--c-on-success-container);
  border-color: color-mix(in srgb, var(--c-success) 22%, transparent);
}

.banner-success .banner-badge {
  background: var(--c-success);
  color: var(--c-on-success);
}

.banner-on-brand {
  background: var(--brand-glass);
  color: var(--c-on-brand);
  border-color: color-mix(in srgb, var(--c-on-brand) 18%, transparent);
}

.banner-on-brand .banner-badge {
  background: var(--c-on-brand);
  color: var(--c-surface-raised);
}

/* ---- The summary and the fields ----------------------------------------------------------- */

.review .headline {
  margin: 8px 0 8px;
}

.list {
  overflow: hidden;
}

.kv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.kv-row + .kv-row {
  border-top: 1px solid var(--c-outline-variant);
}

.kv-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--c-on-surface-variant);
}

.kv-text {
  flex: 1;
  min-width: 0;
}

.kv-label {
  font-size: 11px;
  line-height: 16px;
  font-weight: var(--label-weight);
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  color: var(--c-on-surface-variant);
}

.kv-value {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.kv-detail {
  font-size: 12px;
  line-height: 16px;
  color: var(--c-on-surface-variant);
}

.extras-picker .list .choice + .choice {
  border-top: 1px solid var(--c-outline-variant);
}

.identify {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.identify > .section-title {
  margin-bottom: -8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.field-box {
  display: flex;
  align-items: center;
  background: var(--c-surface-container-low);
  border: 1px solid var(--c-outline-variant);
  border-radius: var(--radius-sm);
  min-height: 52px;
}

.field-box:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 1px var(--c-primary);
}

.field-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 24px;
}

.field-input:focus {
  outline: none;
}

.field-helper {
  font-size: 12px;
  line-height: 16px;
  color: var(--c-on-surface-variant);
}

.field-error {
  font-size: 12px;
  line-height: 16px;
  color: var(--c-danger);
}

.field-error:empty {
  display: none;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}

.phone-prefix:hover:not(:disabled) {
  background: color-mix(in srgb, var(--c-on-surface) 6%, transparent);
}

.phone-flag {
  font-size: 20px;
  line-height: 1;
}

.phone-input {
  padding-left: 4px;
}

.legal {
  font-size: 12px;
  line-height: 16px;
  color: var(--c-on-surface-variant);
}

.code-sent {
  font-size: 16px;
  line-height: 24px;
}

.code-field {
  position: relative;
}

.code-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.code-box {
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--c-surface-container-low);
  box-shadow: inset 0 0 0 1px var(--c-outline-variant);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.code-box.is-current {
  background: var(--c-surface-raised);
  box-shadow: inset 0 0 0 2px var(--c-primary);
}

.code-field.has-error .code-box {
  box-shadow: inset 0 0 0 1px var(--c-danger);
}

.code-input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  border: 0;
  font-size: 16px;
  letter-spacing: 2em;
  caret-color: transparent;
}

.code-field:focus-within {
  outline: 2px solid transparent;
}

.identify .button-text {
  align-self: flex-start;
  padding: 0 12px;
  margin-left: -12px;
}

/* The countries, in a sheet. */

.sheet {
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--c-surface-raised);
  color: var(--c-on-surface);
  display: flex;
  flex-direction: column;
}

.sheet:not([open]) {
  display: none;
}

@media (min-width: 600px) {
  .sheet {
    margin: auto;
    border-radius: var(--radius-xl);
  }
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 4px 24px;
}

.sheet-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}

.search-box {
  margin: 4px 24px 8px;
  padding-left: 14px;
  color: var(--c-on-surface-variant);
}

.search-box .field-input {
  color: var(--c-on-surface);
}

.country-list {
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
  overflow-y: auto;
}

.country {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 24px;
}

.country:hover {
  background: color-mix(in srgb, var(--c-on-surface) 5%, transparent);
}

.country.is-selected {
  background: var(--c-secondary-container);
  color: var(--c-on-secondary-container);
}

.country-flag {
  font-size: 22px;
}

.country-name {
  flex: 1;
}

.country-code {
  color: var(--c-on-surface-variant);
  font-variant-numeric: tabular-nums;
}

.country-empty {
  padding: 16px 24px 24px;
  color: var(--c-on-surface-variant);
}

/* ---- Booked (BookingDonePage) ---------------------------------------------------------------- */

.done {
  border-radius: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.done-portrait {
  position: absolute;
  inset: 0 0 auto 0;
  height: 66.6%;
  z-index: 0;
  display: grid;
  place-items: center;
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.2) 30.25%, #000 55%);
  mask-image: linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.2) 30.25%, #000 55%);
  overflow: hidden;
}

.done-portrait img {
  object-position: 50% 25%;
}

.done-portrait .portrait-initial {
  font-size: 320px;
}

.done-content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: calc(640px + 40px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

.done-logo .logo {
  width: 110px;
}

.done-text {
  margin-top: auto;
  padding-top: 24px;
}

.done-title {
  font-size: 24px;
  line-height: calc(30px * var(--display-line));
  opacity: 0.8;
}

.done-title:focus {
  outline: none;
}

.done-time {
  font-size: 72px;
  line-height: 1;
  margin: 4px 0 8px;
}

.done-day {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}

.seam {
  height: 4px;
}

[data-seam="dashed"] .seam {
  height: 1px;
  margin: 16px 0;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--c-ornament) 75%, transparent) 57%, transparent 57%);
  background-size: 7px 1px;
}

.done-with {
  font-size: 16px;
  line-height: 24px;
  opacity: 0.8;
}

.done-manage {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin-top: 8px;
}

/* ---- What waits for the server (Pending, Skeleton) ---------------------------------------- */

/* Only if the answer takes more than 200 ms: before, nothing shows. */
.is-pending {
  animation: breathe 900ms 200ms linear infinite alternate;
}

@keyframes breathe {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 0.4;
  }
}

.reveal-late {
  animation: reveal var(--motion-short) 200ms both;
}

@keyframes reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.skeleton {
  border-radius: var(--radius-sm);
  background: var(--c-surface-container-high);
  animation: shimmer 900ms linear infinite alternate;
}

@keyframes shimmer {
  to {
    background: var(--c-surface-container-low);
  }
}

.skeleton-row {
  height: 40px;
}

.skeleton-panel {
  height: 66px;
  border-radius: var(--radius-md);
}

.skeleton-card {
  flex: none;
  width: 248px;
  height: 152px;
  border-radius: var(--radius-lg);
}

.skeleton-slot {
  height: 48px;
}

.slots-placeholder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .is-pending {
    animation: none;
    opacity: 0.6;
  }
}
