@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');
/**
 * Customer booking: design system + module imports.
 * Theme (colors, fonts) is shared; modules are per section.
 */
/* --- shared/css/theme.css --- */
/**
 * Shared design system: colors, typography, radius.
 * Import this first in customer and manager main.css.
 */

:root {
  --bg: #F4EADF;
  --surface: #fdfbf9;
  --text: #2c2c2c;
  --text-soft: #4D5849;
  --muted: #6b6560;
  --primary: #4D5849;
  --primary-hover: #3d4639;
  --border: #e5ddd4;
  --radius: 0;
  --radius-sm: 0;
  --error: #b85450;
  --success: #4a7c59;
  --red: #b85450;
  --green: #4a7c59;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* --- customer/css/loading-indicator.css --- */
/** Reusable booking loading: inline + overlay (see loading-indicator.js) */

.booking-loading-host--active {
  min-height: 2.75rem;
}

.booking-loading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.booking-loading--sm {
  font-size: 0.85rem;
  gap: 0.45rem;
}

.booking-loading--sm .booking-loading__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border-width: 2px;
}

.booking-loading__track {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.booking-loading__spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(45, 80, 22, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: booking-loading-spin 0.65s linear infinite;
}

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

.booking-loading__label {
  line-height: 1.35;
}

/* Full-page overlay (confirm booking, future blocking operations) */
.booking-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
}

.booking-loading-overlay__panel {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(45, 80, 22, 0.1);
}

.booking-loading-overlay .booking-loading {
  padding: 0;
  font-size: 1rem;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .booking-loading__spinner {
    animation: none;
    border-top-color: var(--primary);
    opacity: 0.85;
  }
}

/* --- customer/css/steps.css --- */
/** Customer: step progress (dots + lines) and step cards */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.step-progress::-webkit-scrollbar { display: none; }

.step-dot {
  width: 2.1rem;
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius);
  background: var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.step-dot.done {
  background: var(--success);
  color: #fff;
}

.step-dot.active {
  background: var(--primary);
  color: #fff;
}

.step-line {
  width: 1.2rem;
  min-width: 1.2rem;
  height: 2px;
  background: var(--border);
}

.step-line.done { background: var(--success); }

.step { display: none; }
.step.active { display: block; }

.step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

@media (min-width: 420px) {
  .step-progress { margin-top: 1.25rem; }
  .step-dot { width: 2.25rem; min-width: 2.25rem; height: 2.25rem; }
  .step-line { width: 2rem; }
}

/* --- customer/css/booking-feedback.css --- */
/** Customer: inline step feedback */
.booking-feedback {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.4;
  border: 1px solid var(--border);
}

.booking-feedback[hidden] {
  display: none !important;
}

.booking-feedback--info {
  color: var(--text-soft);
  background: rgba(45, 80, 22, 0.06);
  border-color: rgba(45, 80, 22, 0.18);
}

.booking-feedback--error {
  color: var(--error);
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.22);
}

.booking-feedback--success {
  color: var(--primary);
  background: rgba(45, 80, 22, 0.08);
  border-color: rgba(45, 80, 22, 0.22);
}

.preset-menu-note {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.card-registration-status {
  min-height: 0;
  margin-top: 0.65rem;
}

.card-registration-status.booking-loading-host--active {
  min-height: 2rem;
}

.card-registration-status .booking-loading {
  padding: 0;
  color: var(--text-soft);
}

.confirm-loading-status {
  min-height: 0;
  margin-top: 0.75rem;
}

.confirm-loading-status.booking-loading-host--active {
  min-height: 2rem;
}

.confirm-loading-status .booking-loading {
  padding: 0;
  color: var(--text-soft);
}

/* --- customer/css/privacy-modal.css --- */
/** Customer: privacy policy consent + modal */
.privacy-consent {
  margin: 0.9rem 0 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(45, 80, 22, 0.05);
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.privacy-consent a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.privacy-consent a:hover {
  text-decoration: underline;
}

.privacy-modal-open {
  overflow: hidden;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(31, 38, 27, 0.42);
  backdrop-filter: blur(2px);
}

.privacy-modal.hidden {
  display: none !important;
}

.privacy-modal__panel {
  width: min(100%, 720px);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(31, 38, 27, 0.22);
}

.privacy-modal__header {
  padding: 1.1rem 1.2rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.privacy-modal__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-modal__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.25;
}

.privacy-modal__body {
  padding: 1rem 1.2rem;
  overflow-y: auto;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.58;
}

.privacy-modal__body h3 {
  margin: 1.1rem 0 0.35rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.3;
}

.privacy-modal__body h3:first-child {
  margin-top: 0;
}

.privacy-modal__body p {
  margin: 0 0 0.8rem;
}

.privacy-modal__actions {
  padding: 0.85rem 1.2rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.privacy-modal__close {
  width: 100%;
}

@media (min-width: 560px) {
  .privacy-modal__close {
    width: auto;
    min-width: 10rem;
  }

  .privacy-modal__actions {
    display: flex;
    justify-content: flex-end;
  }
}

/* --- customer/css/booking-summary-card.css --- */
/** Customer: compact booking summary card */
.booking-summary-card {
  margin: 0 0 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(219, 166, 88, 0.55);
  border-radius: var(--radius);
  background: rgba(219, 166, 88, 0.12);
}

.booking-summary-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.booking-summary-card__eyebrow {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.booking-summary-card__title {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.booking-summary-card__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(45, 80, 22, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.booking-summary-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.6rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.booking-summary-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.booking-summary-card__actions button {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(45, 80, 22, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}

.booking-summary-card__actions button:hover,
.booking-summary-card__remove:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- customer/css/success-animation.css --- */
/** Customer: reusable animated success mark */
.success-animation {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}

.success-animation__mark {
  width: 4.5rem;
  height: 4.5rem;
  color: var(--success);
  overflow: visible;
}

.success-animation__circle {
  fill: rgba(41, 128, 77, 0.1);
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: success-circle 0.55s ease-out forwards;
}

.success-animation--sad .success-animation__mark {
  color: #6f7f52;
}

.success-animation--sad .success-animation__circle {
  fill: rgba(111, 127, 82, 0.11);
}

.success-animation__happy-face,
.success-animation__sad-face {
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: 32px 32px;
  animation: success-face 0.28s 0.42s ease-out forwards;
}

.success-animation__happy-face path,
.success-animation__sad-face path {
  fill: none;
  stroke-width: 3;
}

@keyframes success-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes success-face {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .success-animation__circle,
  .success-animation__happy-face,
  .success-animation__sad-face {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }
}

/* --- customer/css/booking-form.css --- */
/** Customer: layout, header, card, labels, inputs, buttons */
.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem max(0.9rem, env(safe-area-inset-left)) calc(1.2rem + env(safe-area-inset-bottom));
}

.booking-header {
  margin-bottom: 1.5rem;
}

.booking-logo {
  display: block;
  max-width: 42%;
  min-width: 124px;
  height: auto;
  margin: 0 auto 1rem;
}

.booking-header h1 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.lead {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(45, 80, 22, 0.04);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85em;
}

.required {
  font-weight: 500;
  color: var(--text-soft);
  font-size: 0.85em;
}

.preset-menu-section {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.preset-menu-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--text);
}

.preset-menu-root {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.preset-menu-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.preset-menu-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

.preset-menu-tab.is-active {
  border-color: var(--primary);
  background: rgba(45, 80, 22, 0.1);
  color: var(--primary);
}

.preset-menu-selected,
.preset-menu-status {
  border: 1px solid rgba(45, 80, 22, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  background: rgba(45, 80, 22, 0.055);
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.preset-menu-selected {
  font-weight: 600;
}

.preset-menu-category {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  background: rgba(45, 80, 22, 0.025);
}

.preset-menu-category h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.preset-menu-category__desc,
.preset-menu-category__rule {
  margin: 0.2rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.preset-menu-category__rule {
  color: var(--text-soft);
  font-weight: 600;
}

.preset-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

.preset-menu-item__name {
  display: block;
  color: var(--text);
}

.preset-menu-item__desc,
.preset-menu-item__meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.preset-menu-item__meta {
  color: var(--text-soft);
  font-weight: 600;
}

.preset-menu-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: start;
}

.preset-menu-qty button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.preset-menu-qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.preset-menu-qty span {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
}

.large-party-request {
  margin: -0.45rem 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.large-party-request a {
  color: var(--primary);
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.guest-area-section {
  margin-bottom: 1rem;
}

.area-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.area-choice__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 56px;
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.area-choice__btn:hover {
  border-color: var(--muted);
}

.area-choice__btn.is-selected {
  border-color: var(--primary);
  background: rgba(45, 80, 22, 0.06);
  box-shadow: 0 0 0 2px rgba(45, 80, 22, 0.12);
}

.area-choice__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--text-soft);
}

.area-choice__btn.is-selected .area-choice__icon {
  color: var(--primary);
}

.area-choice__label {
  line-height: 1.1;
}

.area-choice__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font-body);
  margin-bottom: 1rem;
  background: var(--surface);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  resize: vertical;
  min-height: 4rem;
  line-height: 1.35;
}

/* Prevent native date controls from overflowing card on some mobile browsers */
input[type="date"] {
  min-width: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.12);
}

select option:disabled {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.nav button {
  flex: 1;
  min-height: 44px;
}

.btn-primary {
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: background 0.2s ease;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-secondary {
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--muted);
}

.error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 420px) {
  .container { padding: 1.4rem 1.15rem 1.7rem; }
  .card { padding: 1.2rem; }
}

@media (min-width: 560px) {
  .container { padding: 2rem 1.5rem; }
  .card { padding: 1.5rem; }
  .booking-logo { max-width: 34%; }
  .nav {
    flex-direction: row;
    gap: 0.75rem;
  }
}

/* --- customer/css/calendar-picker.css --- */
/**
 * Inline calendar picker styles.
 *
 * Tokens come from /shared/css/theme.css. Past and unbookable cells are
 * explicitly muted (via .is-disabled) so users see at a glance which days
 * they can pick — the same on every browser, including mobile.
 */

.calendar-picker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.75rem 0.95rem;
  margin-bottom: 1rem;
  user-select: none;
  -webkit-user-select: none;
}

.calendar-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.calendar-picker__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.calendar-picker__nav {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-soft);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.calendar-picker__nav:hover:not(:disabled) {
  background: rgba(77, 88, 73, 0.06);
  border-color: var(--muted);
  color: var(--text);
}

.calendar-picker__nav:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 88, 73, 0.15);
}

.calendar-picker__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-picker__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.calendar-picker__weekdays span {
  padding: 0.3rem 0;
}

.calendar-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
}

.calendar-picker__cell {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  height: 2.55rem;
  min-height: 2.55rem;
  width: 100%;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.calendar-picker__cell:hover:not(:disabled):not(.is-selected) {
  background: rgba(77, 88, 73, 0.08);
}

.calendar-picker__cell:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(77, 88, 73, 0.18);
}

.calendar-picker__cell.is-outside {
  color: var(--muted);
  opacity: 0.55;
}

.calendar-picker__cell.is-today {
  border-color: var(--primary);
  font-weight: 700;
}

.calendar-picker__cell.is-selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.calendar-picker__cell.is-selected:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.calendar-picker__cell.is-disabled,
.calendar-picker__cell:disabled {
  color: rgba(108, 101, 96, 0.45);
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
  text-decoration: line-through;
  text-decoration-color: rgba(108, 101, 96, 0.35);
  text-decoration-thickness: 1px;
}

.calendar-picker__cell.is-disabled.is-outside {
  color: rgba(108, 101, 96, 0.3);
  opacity: 0.6;
}

@media (max-width: 480px) {
  .calendar-picker {
    padding: 0.75rem 0.55rem 0.85rem;
  }
  .calendar-picker__cell {
    height: 2.85rem;
    min-height: 2.85rem;
    font-size: 0.95rem;
  }
}

/* --- customer/css/slots.css --- */
/** Customer: time slot grid and slot buttons */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
  margin-bottom: 0.5rem;
}

.slot {
  min-height: 40px;
  padding: 0.58rem 0.32rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.slot:hover,
.slot.selected {
  border-color: var(--primary);
  background: rgba(45, 80, 22, 0.08);
}

.slot-empty-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(219, 166, 88, 0.6);
  border-radius: var(--radius);
  background: rgba(219, 166, 88, 0.18);
  color: var(--text);
}

.slot-empty-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(45, 80, 22, 0.1);
  color: var(--primary);
  font-weight: 700;
}

.slot-empty-card__title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.slot-empty-card__text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

.slot-empty-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.slot-empty-card__actions a {
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(45, 80, 22, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 420px) {
  .slot-grid {
    gap: 0.5rem;
  }

  .slot {
    min-height: 42px;
    padding: 0.65rem 0.45rem;
    font-size: 0.94rem;
  }
}

@media (min-width: 680px) {
  .slot {
    min-height: 44px;
    padding: 0.7rem 0.6rem;
    font-size: 0.98rem;
  }
}

/* --- customer/css/review.css --- */
/** Customer: review summary, success card, payment, links */
.summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.summary p {
  margin: 0.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.summary p strong {
  flex: 0 0 auto;
}

.summary p span {
  text-align: right;
  word-break: break-word;
}

/* Party step: policy + terms prose (not label/value rows). */
.summary.summary--terms {
  padding: 0;
  background: transparent;
}

.summary.summary--terms p {
  display: block;
  margin: 0.5rem 0;
}

.summary.summary--terms p strong {
  flex: unset;
}

.summary.summary--terms .policy-card,
.summary.summary--terms .terms-prose {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem 1.05rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
}

.summary.summary--terms .policy-card.policy-card--warn {
  background: #dba658;
  border: 1px solid rgba(42, 36, 24, 0.12);
  padding: 0.85rem 1rem;
}

.summary.summary--terms .policy-card__warn-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.summary.summary--terms .policy-card__warn-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #2a2418;
  line-height: 0;
}

.summary.summary--terms .policy-card__warn-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #2a2418;
}

.summary.summary--terms .terms-prose__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.summary.summary--terms .terms-prose {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.summary.summary--terms .terms-prose__details {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.summary.summary--terms .terms-prose__details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
}

.summary.summary--terms .terms-prose__details[open] summary {
  margin-bottom: 0.45rem;
}

.summary.summary--terms .terms-prose__details p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.payment-label {
  margin-bottom: 0.5rem;
}

#payment-element {
  margin-bottom: 0.75rem;
  min-height: 44px;
}

.success-card .step-title { margin-bottom: 0.5rem; }

.success-msg {
  color: var(--success);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.success-card .success-card__hint {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.success-card p {
  margin: 0.5rem 0;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.success-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.success-action__icon {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.success-action__icon svg {
  display: block;
}

.success-action--primary {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 1px 2px rgba(45, 80, 22, 0.12);
}

.success-action--primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.success-action--danger {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.success-action--danger:hover {
  background: rgba(180, 60, 50, 0.08);
  border-color: rgba(180, 60, 50, 0.35);
  color: #8a2c24;
}

@media (min-width: 420px) {
  .success-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .success-action {
    flex: 1;
    min-width: 200px;
  }
}

.link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.link:hover { text-decoration: underline; }

@media (max-width: 420px) {
  .summary p {
    flex-direction: column;
    gap: 0.1rem;
  }
  .summary p span {
    text-align: left;
  }
}
