/* Premier Taxis Salisbury — stylesheet
   Color variables (--bg, --surface, --text, --accent, --navy, etc.) come
   from css/theme.css, which must be linked before this file. This file is
   layout + components only, so it automatically follows whatever mode
   (light/dim/lights-out) and accent color the visitor has picked.

   Renamed style.css -> style-v2.css: every public page links this file
   with a bare href and no cache-busting query string, and the live host
   serves it with `Cache-Control: public, max-age=604800` (7 days) — so
   every edit made to style.css sat invisible on production for up to a
   week (confirmed live: the .cookie-banner and .pwa-install-banner rules
   were completely absent from the served file days after being added,
   which meant the cookie-consent banner rendered with position:static
   instead of fixed and was effectively invisible — silently blocking
   anyone from ever accepting analytics cookies, which is also why GA4
   showed zero traffic). Same "only a filename rename reliably busts
   the cache on this host" lesson as every dashboard JS file above —
   this is the first time it's bitten a CSS file. Any further edit to
   this file needs another rename before the next deploy. */

:root {
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-weight: 800; color: var(--text); line-height: 1.15; margin: 0; }
p { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mt { margin-top: 20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary { background: rgba(255,255,255,0.12); color: var(--on-dark); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* Outlined variant for light-card contexts (e.g. the booking overview
   screen), as opposed to .btn-secondary which is tuned for dark hero
   backgrounds. */
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); }

/* Booking overview (booking-edit.php, after a successful save) */
.booking-summary-rows { border-top: 1px solid var(--border); margin: 20px 0; }
.booking-summary-row { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.booking-summary-row dt { flex: 0 0 130px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.booking-summary-row dd { margin: 0; font-size: 0.92rem; color: var(--text); }
.booking-summary-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.booking-summary-actions .btn { flex: 1 1 200px; }
.booking-back-link { display: inline-block; margin-bottom: 16px; font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.booking-back-link:hover { color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark { flex-shrink: 0; }

.logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--on-dark);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo-sub {
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: var(--accent-contrast) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — Salisbury Cathedral photo on the right, dissolving into solid
   navy on the left where the text sits. The photo layer + gradient live
   on .hero-bg so the text markup stays untouched above it. */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  padding: 88px 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/hero-cathedral-right.jpg");
  background-size: cover;
  background-position: center right;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--navy) 0%,
    var(--navy) 32%,
    rgba(15, 36, 56, 0.82) 50%,
    rgba(15, 36, 56, 0.35) 72%,
    rgba(15, 36, 56, 0.12) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--on-dark);
  font-size: 2.6rem;
  margin-bottom: 18px;
}
.hero-text p {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.trust-badges li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-badges svg { color: var(--accent); flex-shrink: 0; }

/* Slight lift so the text reads crisply over any bright patch of sky */
.hero-text { text-shadow: 0 1px 12px rgba(15, 36, 56, 0.45); }

/* Section heading */
.section-heading {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-heading h2 { font-size: 2rem; margin: 8px 0 14px; }
.section-heading p { color: var(--muted); font-size: 1.02rem; }
.section-heading.light .eyebrow { color: var(--accent); }
.section-heading.light h2 { color: var(--on-dark); }
.section-heading.light p { color: rgba(255,255,255,0.75); }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

/* Coverage */
.coverage { padding: 84px 0; }
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.coverage h3 { font-size: 1.1rem; margin-bottom: 14px; }

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
}
.chip-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}

.hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 500;
}
.hours-table th { color: var(--text); font-weight: 600; }
.hours-table td { color: var(--muted); text-align: right; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }

/* Pricing */
.pricing { padding: 84px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card { text-align: left; }
.pricing-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pricing-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pricing-card p { color: var(--muted); font-size: 0.92rem; }

/* Booking */
.booking { padding: 84px 0; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%); }
.booking-form { max-width: 780px; margin: 0 auto; }

/* Honeypot — hidden from real users, catches basic bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

fieldset { border: none; padding: 0; margin: 0 0 28px; }
legend {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  padding: 0 0 16px;
  width: 100%;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field-wide { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.req { color: var(--error); }
.optional { color: var(--muted); font-weight: 400; }

.field input, .field textarea {
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 70px; }

.autocomplete-wrap { position: relative; }

.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete-list[hidden] { display: none; }

.autocomplete-item {
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* Quick-fill chips for a logged-in client's saved addresses (Home, Work,
   etc.) — injected by js/saved-address-picker.js only when that request
   succeeds, so anonymous visitors never see an empty/broken row. */
.saved-address-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.saved-address-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.saved-address-chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 8px;
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); }

.w3w-input.hidden { display: none; }

.field.invalid input, .field.invalid textarea { border-color: var(--error); background: var(--error-bg); }
.error-msg {
  font-size: 0.8rem;
  color: var(--error);
  min-height: 1em;
  display: block;
}

/* Non-blocking helper text, e.g. the large-group notice under Passengers —
   distinct from .error-msg (red, blocks submit) since this never stops the
   form from being sent. Empty by default; JS fills it in only when relevant. */
.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 4px 0 0;
  display: none;
  line-height: 1.4;
}
.field-hint.visible { display: block; }

.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  margin-top: 6px;
  position: relative;
}
.btn-spinner { display: none; animation: spin 0.8s linear infinite; }
.btn-submit.loading .btn-label { opacity: 0.6; }
.btn-submit.loading .btn-spinner { display: block; }
.btn-submit:disabled { cursor: not-allowed; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 16px;
  padding: 0;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}
.form-status.success { padding: 14px; background: var(--success-bg); color: var(--success); }
.form-status.error { padding: 14px; background: var(--error-bg); color: var(--error); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 48px 0 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}
.footer-brand { max-width: 360px; }
.footer-brand .logo-text.light { color: var(--on-dark); margin-bottom: 10px; }
.footer-brand p { margin-top: 10px; color: rgba(255,255,255,0.6); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.15s ease;
}
.footer-contact a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; }
.footer-bottom p { color: rgba(255,255,255,0.5); text-align: center; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; }
.footer-bottom-inner p { margin: 0; }
.footer-legal-links a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.footer-legal-links a:hover { color: var(--accent); }

/* Quick actions */
.quick-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.quick-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.quick-btn:hover { transform: scale(1.08); }
.quick-btn-whatsapp { background: #25D366; color: #fff; }

/* Fixed fares */
.fares { padding: 72px 0; background: var(--bg); }

.fares-table-card { padding: 10px 22px 18px; overflow-x: auto; max-width: 780px; margin: 0 auto; }
.fares-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.fares-table th, .fares-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.fares-table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fares-table td:first-child { font-weight: 600; color: var(--text); }
.fares-table td:nth-child(2) { color: var(--accent-dark); font-weight: 700; }
.fares-table tbody tr:last-child td { border-bottom: none; }
.fares-note { margin: 14px 2px 4px; }
.fares-note a { color: var(--accent-dark); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* On small screens the photo becomes a full-bleed backdrop behind the
     text: lighter mobile image + a stronger, mostly-vertical navy wash so
     everything stays readable. */
  .hero-bg { background-image: url("../assets/img/hero-cathedral-mobile.jpg"); background-position: center; }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(15, 36, 56, 0.94) 0%,
      rgba(15, 36, 56, 0.86) 55%,
      rgba(15, 36, 56, 0.72) 100%
    );
  }
  .coverage-grid, .pricing-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 52px 0; }
  .coverage, .pricing, .booking, .fares { padding: 56px 0; }
  .card { padding: 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-inner { flex-direction: column; }
}

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

/* ---------- Cookie consent banner + advanced panel ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.cookie-banner-text {
  flex: 1 1 420px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.cookie-banner-text a { color: var(--accent-dark, var(--accent)); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn-primary { background: var(--accent); color: var(--accent-contrast); border: 2px solid var(--accent); }
.cookie-btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.cookie-btn-text { background: none; border: none; color: var(--muted); text-decoration: underline; padding: 10px 4px; }
.cookie-btn:hover { opacity: 0.85; }

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(15, 36, 56, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal {
  background: var(--surface);
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px 26px 22px;
}
.cookie-modal h2 { margin: 0 0 16px; font-size: 1.15rem; color: var(--text); }
.cookie-modal-row { padding: 14px 0; border-top: 1px solid var(--border); }
.cookie-modal-row:first-of-type { border-top: none; }
.cookie-modal-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal-row-head strong { color: var(--text); font-size: 14px; }
.cookie-modal-row p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px; height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-toggle-dot {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.15s ease;
}
.cookie-toggle-dot::before {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--surface);
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.cookie-toggle input:checked ~ .cookie-toggle-dot { background: var(--accent); }
.cookie-toggle input:checked ~ .cookie-toggle-dot::before { transform: translateX(18px); }
.cookie-toggle-locked { opacity: 0.6; cursor: not-allowed; }
.cookie-toggle-locked .cookie-toggle-dot { background: var(--accent); }
.cookie-toggle-locked .cookie-toggle-dot::before { transform: translateX(18px); }

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 560px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
  .cookie-modal-actions { flex-direction: column-reverse; }
  .cookie-modal-actions .cookie-btn { width: 100%; }
}

/* "Install app" banner (see js/pwa-install.js) — same bottom-bar treatment
   as the cookie banner, reusing its .cookie-btn button styles. */
.pwa-install-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 890; /* just under the cookie banner (900), so consent always wins if both were ever forced to overlap */
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  animation: pwa-banner-in 0.25s ease;
}
@keyframes pwa-banner-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.pwa-install-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.pwa-install-icon { border-radius: 10px; flex-shrink: 0; }
.pwa-install-text { flex: 1 1 360px; }
.pwa-install-text strong { display: block; color: var(--text); font-size: 0.98rem; margin-bottom: 2px; }
.pwa-install-text p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.pwa-install-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

@media (max-width: 560px) {
  .pwa-install-inner { flex-direction: column; align-items: stretch; }
  .pwa-install-icon { display: none; }
  .pwa-install-actions { justify-content: flex-end; }
}
