:root {
  --lsono-page: #fbf8f2;
  --lsono-ink: #080808;
  --lsono-muted: #5b5650;
  --lsono-line: rgba(8, 8, 8, 0.12);
  --lsono-panel: #ffffff;
  --lsono-accent: #b58c58;
  --lsono-header-height: 86px;
  --lsono-radius: 8px;
}

body.lsono-booking-page {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--lsono-page);
  color: var(--lsono-ink);
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

.lsono-booking-topbar,
.lsono-booking-topbar * {
  box-sizing: border-box;
}

.lsono-booking-topbar {
  height: var(--lsono-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 3vw, 42px);
  border-bottom: 1px solid var(--lsono-line);
  background: rgba(251, 248, 242, 0.96);
}

.lsono-booking-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.lsono-booking-brand img {
  display: block;
  width: clamp(176px, 24vw, 230px);
  height: auto;
}

.lsono-booking-brand-line {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid var(--lsono-line);
}

.lsono-booking-eyebrow {
  color: var(--lsono-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.lsono-booking-brand h1 {
  margin: 0;
  font-size: clamp(17px, 2.1vw, 24px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lsono-booking-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.lsono-booking-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--lsono-radius);
  border: 1px solid var(--lsono-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--lsono-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.lsono-booking-frame-shell {
  position: relative;
  height: calc(100dvh - var(--lsono-header-height));
  min-height: 420px;
  background: var(--lsono-panel);
}

.lsono-booking-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.lsono-booking-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: min(18vh, 120px);
  background: var(--lsono-panel);
  color: var(--lsono-muted);
  font-size: 14px;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 1;
}

.lsono-booking-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.lsono-booking-loading-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.lsono-booking-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(8, 8, 8, 0.12);
  border-top-color: var(--lsono-accent);
  border-radius: 50%;
  animation: lsono-spin 900ms linear infinite;
}

.lsono-booking-route-selector {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(251, 248, 242, 0.96);
  z-index: 2;
}

.lsono-needs-selection .lsono-booking-route-selector {
  display: grid;
}

.lsono-booking-route-selector-panel {
  width: min(680px, 100%);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--lsono-line);
  border-radius: var(--lsono-radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(8, 8, 8, 0.12);
}

.lsono-booking-route-selector h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.lsono-booking-route-selector p {
  margin: 0 0 18px;
  color: var(--lsono-muted);
  font-size: 14px;
}

.lsono-booking-route-selector-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.lsono-booking-route-selector select,
.lsono-booking-route-selector button {
  min-height: 44px;
  border-radius: var(--lsono-radius);
  font: inherit;
}

.lsono-booking-route-selector select {
  width: 100%;
  border: 1px solid var(--lsono-line);
  background: #fff;
  color: var(--lsono-ink);
  padding: 0 12px;
}

.lsono-booking-route-selector button {
  border: 0;
  background: var(--lsono-ink);
  color: #fff;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
}

.lsono-booking-route-selector button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lsono-booking-debug-panel {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-height: 45vh;
  overflow: auto;
  display: none;
  border: 1px solid var(--lsono-line);
  border-radius: var(--lsono-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(8, 8, 8, 0.16);
  color: var(--lsono-ink);
  z-index: 10;
}

.lsono-booking-debug-panel.is-visible {
  display: block;
}

.lsono-booking-debug-panel header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f1f3f4;
  font-weight: 700;
}

.lsono-booking-debug-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.lsono-booking-debug-panel th,
.lsono-booking-debug-panel td {
  padding: 8px 10px;
  border-top: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.lsono-booking-debug-panel code {
  font-size: 11px;
  word-break: break-all;
}

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

@media (max-width: 760px) {
  :root {
    --lsono-header-height: 74px;
  }

  .lsono-booking-topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .lsono-booking-brand {
    flex: 1;
  }

  .lsono-booking-brand img {
    width: 154px;
  }

  .lsono-booking-brand-line {
    display: none;
  }

  .lsono-booking-back-link {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .lsono-booking-route-selector-form {
    grid-template-columns: 1fr;
  }

  .lsono-booking-debug-panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-height: 52vh;
  }
}
