/* ============================================================
   Wheelchair Transport Service — cookie-consent.css
   ============================================================ */

#wts-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1e3a61;
  color: #fff;
  box-shadow: 0 -4px 24px rgba(46, 85, 140, 0.30);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* On short screens the expanded panel can exceed the viewport — scroll it
     internally rather than letting the top get clipped out of reach. */
  max-height: 92vh;
  overflow-y: auto;
}

#wts-cookie-banner.wts-cb-visible {
  transform: translateY(0);
}

.wts-cb-inner {
  max-width: 1200px;
  margin: 0 auto;
  /* Compact by default — a slim bar. Grows when expanded (see below). */
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}

/* Expanded (Customize) state gets more breathing room and stacks the panel
   above the buttons so the options can use the banner's full width. */
#wts-cookie-banner.wts-cb-expanded .wts-cb-inner {
  padding: 20px 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Let the panel fill the banner width (flex column won't stretch it otherwise). */
#wts-cookie-banner.wts-cb-expanded .wts-cb-text {
  width: 100%;
}

.wts-cb-text {
  flex: 1;
  min-width: 240px;
}

/* Compact one-line summary shown before customizing. */
.wts-cb-summary {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.45;
}

/* Hide the short summary once the preferences panel is open. */
#wts-cookie-banner.wts-cb-expanded .wts-cb-summary {
  display: none;
}

.wts-cb-prefs-title {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.wts-cb-prefs-intro {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 4px;
  line-height: 1.5;
}

.wts-cb-text a {
  color: #ED722C;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wts-cb-text a:hover {
  color: #f5945c;
}

.wts-cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Customize / preferences panel ── */
.wts-cb-prefs {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Keep the panel collapsed until Customize — an author `display` value would
   otherwise override the `hidden` attribute's default display:none. */
.wts-cb-prefs[hidden] {
  display: none;
}

/* Category options laid out two across so they use the panel's full width
   without scrolling; collapses to a single column on narrow screens. */
.wts-cb-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wts-cb-cat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.wts-cb-cat:hover {
  background: rgba(255, 255, 255, 0.09);
}

.wts-cb-toggle {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #ED722C;
  cursor: pointer;
}

.wts-cb-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.wts-cb-toggle:focus-visible {
  outline: 3px solid #ED722C;
  outline-offset: 2px;
}

.wts-cb-cat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wts-cb-cat-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wts-cb-cat-title em {
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.wts-cb-cat-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.wts-cb-customize {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.30);
}

.wts-cb-customize:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.wts-cb-save {
  background: #ED722C;
  color: #fff;
}

.wts-cb-save:hover {
  background: #c55a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(237, 114, 44, 0.35);
}

.wts-cb-btn {
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.wts-cb-btn:focus-visible {
  outline: 3px solid #ED722C;
  outline-offset: 2px;
}

.wts-cb-accept {
  background: #ED722C;
  color: #fff;
}

.wts-cb-accept:hover {
  background: #c55a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(237, 114, 44, 0.35);
}

.wts-cb-reject {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.wts-cb-reject:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* ── Dark-mode compatibility (dark-mode class on body) ── */
body.dark-mode #wts-cookie-banner {
  background: #0d1018;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .wts-cb-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }

  .wts-cb-actions {
    width: 100%;
  }

  .wts-cb-btn {
    flex: 1;
    text-align: center;
  }

  /* Single column of options when there isn't room for two. */
  .wts-cb-cats {
    grid-template-columns: 1fr;
  }
}

/* ── Blocking overlay (first visit, before any choice) ── */
html.wts-cb-locked { overflow: hidden; }
#wts-cb-backdrop {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(15, 20, 32, 0.62);
  -webkit-backdrop-filter: grayscale(1) blur(3px);
  backdrop-filter: grayscale(1) blur(3px);
  display: flex; align-items: center; justify-content: center;
  /* bottom padding clears the consent bar so the card is centered in the
     visible area above it */
  padding: 24px 24px 120px;
  overflow-y: auto;
}
.wts-cb-callcard {
  background: #fff; color: #1c2233; border-radius: 16px;
  padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 56px);
  max-width: 720px; width: 100%; text-align: center; margin: auto;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4);
  border-top: 8px solid #ED722C;
}
.wts-cb-call-title { display: block; font-family: 'Oswald', sans-serif; font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.2; color: #2E558C; }
.wts-cb-callcard p { font-size: clamp(1.05rem, 2.4vw, 1.4rem); line-height: 1.5; margin: 12px 0 28px; color: #3d4556; }
.wts-cb-call-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #ED722C; color: #fff; border-radius: 12px; padding: clamp(16px, 3vw, 24px) 20px;
  font-family: 'Oswald', sans-serif; font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 600; letter-spacing: 0.02em; line-height: 1.1;
  text-decoration: none; margin-top: 14px;
}
.wts-cb-call-btn span { font-size: clamp(0.85rem, 2vw, 1.05rem); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.92; }
.wts-cb-call-btn:hover, .wts-cb-call-btn:focus-visible { background: #c55a1a; }
.wts-cb-call-alt { background: #2E558C; }
.wts-cb-call-alt:hover, .wts-cb-call-alt:focus-visible { background: #1e3a61; }
#wts-cb-backdrop.wts-cb-callcard-hidden .wts-cb-callcard { display: none; }
@media (max-width: 700px) { #wts-cb-backdrop { padding-bottom: 230px; } }
@media (prefers-reduced-motion: reduce) { #wts-cookie-banner { transition: none; } }

/* Accessibility toolbar stays usable (and above everything) while the consent
   bar is up — it is not privacy-gated. Lifted clear of the bar so it never
   covers the consent buttons. */
html.wts-cb-open .a11y-toolbar {
  z-index: 100001;
  bottom: min(calc(var(--wts-cb-h, 0px) + 16px), 55vh);
}

/* ── Attention effects (first-visit blocking state only) ──
   Applied to the whole bar and to Accept + Reject equally so neither choice
   is steered. All motion is disabled for prefers-reduced-motion. */
#wts-cookie-banner.wts-cb-attn { animation: wts-cb-glow 1.8s ease-in-out infinite; border-top: 4px solid #ED722C; }
#wts-cookie-banner.wts-cb-attn .wts-cb-inner { animation: wts-cb-nudge 3.2s ease-in-out infinite; }
#wts-cookie-banner.wts-cb-attn .wts-cb-accept,
#wts-cookie-banner.wts-cb-attn .wts-cb-reject { animation: wts-cb-ring 1.8s ease-out infinite; }
@keyframes wts-cb-glow {
  0%, 100% { box-shadow: 0 -4px 24px rgba(237, 114, 44, 0.25); }
  50%      { box-shadow: 0 -6px 44px rgba(237, 114, 44, 0.85); }
}
@keyframes wts-cb-nudge {
  0%, 70%, 100% { transform: translateY(0); }
  76% { transform: translateY(-9px); }
  82% { transform: translateY(0); }
  88% { transform: translateY(-5px); }
  94% { transform: translateY(0); }
}
@keyframes wts-cb-ring {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.wts-cb-arrow {
  margin-top: 22px; font-family: 'Oswald', sans-serif; font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: 0.1em; text-transform: uppercase; color: #ED722C; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.wts-cb-arrow b { font-size: clamp(2rem, 5vw, 2.8rem); animation: wts-cb-bounce 1s ease-in-out infinite; }
@keyframes wts-cb-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  #wts-cookie-banner.wts-cb-attn,
  #wts-cookie-banner.wts-cb-attn .wts-cb-inner,
  #wts-cookie-banner.wts-cb-attn .wts-cb-accept,
  #wts-cookie-banner.wts-cb-attn .wts-cb-reject,
  .wts-cb-arrow b { animation: none; }
  #wts-cookie-banner.wts-cb-attn { box-shadow: 0 -4px 28px rgba(237, 114, 44, 0.7); }
}
