/* Shared styles for the whitelabel booking-window timer + expired modal.
   Loaded once in the Makeda shell so every in-flow page (results, book,
   review, payment) reuses the same cached file instead of shipping the
   block inline on each page.
   References CSS custom properties declared on :root in _shell.html.twig. */

.wl-timer-bar {
  background: #fff;
  padding: 10px 20px 14px;
  display: flex; justify-content: center;
}

.wl-booking-timer {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(245, 243, 239, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.wl-booking-timer__icon {
  width: 16px; height: 16px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: color 0.25s ease;
}
.wl-booking-timer__label {
  font-family: 'Archivo', sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.25s ease;
}
.wl-booking-timer__value {
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.wl-booking-timer.is-warning {
  background: rgba(243, 156, 42, 0.12);
  border-color: rgba(243, 156, 42, 0.4);
}
.wl-booking-timer.is-warning .wl-booking-timer__icon,
.wl-booking-timer.is-warning .wl-booking-timer__label,
.wl-booking-timer.is-warning .wl-booking-timer__value {
  color: var(--accent-hover);
}

.wl-booking-timer.is-expired {
  background: rgba(193, 60, 60, 0.1);
  border-color: rgba(193, 60, 60, 0.4);
}
.wl-booking-timer.is-expired .wl-booking-timer__icon,
.wl-booking-timer.is-expired .wl-booking-timer__label,
.wl-booking-timer.is-expired .wl-booking-timer__value {
  color: var(--err);
}

@media (max-width: 640px) {
  .wl-timer-bar { padding: 8px 12px 12px; }
  .wl-booking-timer__label { display: none; }
  .wl-booking-timer { padding: 6px 14px; gap: 8px; }
}

.wl-expired-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(31, 42, 68, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: wl-expired-fade 0.2s ease;
}
.wl-expired-modal[hidden] { display: none; }
@keyframes wl-expired-fade { from { opacity: 0; } to { opacity: 1; } }
.wl-expired-modal__card {
  background: #fff; border-radius: 10px;
  max-width: 460px; width: 100%;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.wl-expired-modal__title {
  font-family: 'Archivo', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink); margin-bottom: 10px;
}
.wl-expired-modal__body {
  font-size: 15px; line-height: 1.55;
  color: var(--ink-2); margin: 0 0 22px;
}
.wl-expired-modal__cta {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent, #F39C2A);
  color: #fff;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.wl-expired-modal__cta:hover {
  background: var(--accent-hover, #E0881A);
}
