/* Continental Taxi — app-shell layout only. Colors, type, buttons and cards
   all come from styles.css (linked alongside this file) - nothing here
   redefines a token, it only lays the compact screen out. */

html, body {
  height: 100%;
  margin: 0;
}

body.app-shell-page {
  overflow: hidden;
}

.app-shell {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 20px max(14px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% -10%, #201a10 0%, var(--color-bg) 60%);
}

.app-shell__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.app-shell__logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.app-shell__wordmark {
  font-family: var(--font-heading);
  font-size: 21px;
  letter-spacing: 0.05em;
  color: var(--color-gold-light);
  text-transform: uppercase;
}

.app-shell__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.quick-order {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-order__route {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  padding: 16px;
  font-size: 16px;
  font-family: inherit;
}

.quick-order__route::placeholder {
  color: var(--color-text-muted);
}

.quick-order__route:focus {
  outline: none;
  border-color: var(--color-gold);
}

.quick-order__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.order-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 38px;
}

.order-pill__check {
  display: none;
  font-size: 11px;
}

.order-pill.is-active {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: #17130a;
  font-weight: 700;
}

.order-pill.is-active .order-pill__check {
  display: inline;
}

.quick-order__when {
  flex: 1 1 140px;
  min-width: 0;
  display: none;
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-dim);
  border-radius: 999px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  min-height: 38px;
}

.quick-order__pills.is-later .quick-order__when {
  display: block;
}

.quick-order__phone {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  padding: 6px 2px;
}

.quick-order__phone::placeholder {
  color: var(--color-text-muted);
}

.quick-order__phone:focus {
  outline: none;
  border-color: var(--color-gold-dim);
}

.quick-order__route.has-error,
.quick-order__when.has-error {
  border-color: var(--color-error);
}

.quick-order__phone.has-error {
  border-bottom-color: var(--color-error);
}

.quick-order__submit {
  width: 100%;
}

.quick-order__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quick-order.is-hidden {
  display: none;
}

.order-tracking {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-tracking[hidden] {
  display: none;
}

.order-tracking__status {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 16px;
  text-align: center;
  margin: 0;
}

.order-tracking__message {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-tracking__message-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  padding: 6px 2px;
}

.order-tracking__message-input::placeholder {
  color: var(--color-text-muted);
}

.order-tracking__message-input:focus {
  outline: none;
  border-color: var(--color-gold-dim);
}

.order-tracking__message-submit {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--color-gold-dim);
  color: var(--color-gold-light);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
}

.order-tracking__message-status {
  font-size: 13px;
  text-align: center;
  min-height: 1em;
}

.order-tracking__message-status.success {
  color: var(--color-success);
}

.order-tracking__message-status.error {
  color: var(--color-error);
}

.app-shell__footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
}

.app-shell__contacts {
  display: flex;
  gap: 22px;
}

.contact-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  min-width: 44px;
}

.contact-chip__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.contact-chip__label {
  font-size: 11px;
  color: var(--color-text-muted);
}

.more-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 13px;
  padding: 6px 10px;
  cursor: pointer;
  min-height: 36px;
}

.more-toggle__chevron {
  transition: transform 0.2s ease;
  font-size: 14px;
}

.more-toggle[aria-expanded="true"] .more-toggle__chevron {
  transform: rotate(180deg);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.more-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82dvh;
  overflow-y: auto;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  padding: 10px 20px max(24px, env(safe-area-inset-bottom));
  z-index: 41;
}

.more-sheet.is-open {
  transform: translateY(0);
}

.more-sheet__handle {
  width: 36px;
  height: 4px;
  background: var(--color-border);
  border-radius: 999px;
  margin: 6px auto 10px;
}

.more-sheet__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 18px;
  min-width: 32px;
  min-height: 32px;
  cursor: pointer;
}

.more-sheet__privacy {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .more-sheet, .sheet-backdrop, .more-toggle__chevron {
    transition: none;
  }
}
