/**
 * Trueleveler — Cookie Consent Banner styles (v1)
 *
 * Pairs with public/assets/js/cookie-consent.js. Loaded as a separate
 * stylesheet so the script can be deferred without flashing unstyled
 * banner content.
 */

/* ─── Bottom banner ──────────────────────────────────────────── */
.tl-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999990; /* above app chrome, below toast */
  background: #0c1221;
  color: #e8eaf0;
  border-top: 1px solid #1a2540;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  animation: tl-cookie-banner-in 0.32s ease;
}
.tl-cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
}
.tl-cookie-banner__msg {
  flex: 1 1 480px;
  min-width: 0;
}
.tl-cookie-banner__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.tl-cookie-banner__body {
  margin: 0;
  color: #cfd6df;
  font-size: 12.5px;
  line-height: 1.6;
}
.tl-cookie-banner__body a {
  color: #f2a33f;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tl-cookie-banner__body a:hover {
  color: #fff3e3;
}
.tl-cookie-banner__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Buttons (shared with modal footer) ─────────────────────── */
.tl-cookie-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  white-space: nowrap;
}
.tl-cookie-btn:focus-visible {
  outline: 2px solid #f2a33f;
  outline-offset: 2px;
}
.tl-cookie-btn--primary {
  background: #e8871e;
  color: #0c1221;
  border-color: #e8871e;
  font-weight: 700;
}
.tl-cookie-btn--primary:hover {
  background: #f2a33f;
  border-color: #f2a33f;
}
.tl-cookie-btn--secondary {
  background: transparent;
  color: #e8eaf0;
  border-color: #2a3552;
}
.tl-cookie-btn--secondary:hover {
  background: rgba(232, 135, 30, 0.08);
  border-color: #e8871e;
  color: #ffffff;
}
.tl-cookie-btn--ghost {
  background: transparent;
  color: #cfd6df;
  border-color: transparent;
}
.tl-cookie-btn--ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

/* ─── Manage modal ───────────────────────────────────────────── */
.tl-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 999991;
  background: rgba(8, 13, 26, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  animation: tl-cookie-modal-in 0.22s ease;
}
.tl-cookie-modal__card {
  background: #0c1221;
  border: 1px solid #1a2540;
  border-radius: 10px;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  color: #e8eaf0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.tl-cookie-modal__hdr {
  padding: 28px 32px 16px;
  border-bottom: 1px solid #1a2540;
}
.tl-cookie-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.tl-cookie-modal__desc {
  margin: 0;
  font-size: 13px;
  color: #cfd6df;
  line-height: 1.65;
}
.tl-cookie-modal__list {
  padding: 8px 32px;
}
.tl-cookie-cat {
  padding: 18px 0;
  border-bottom: 1px solid #1a2540;
}
.tl-cookie-cat:last-child {
  border-bottom: none;
}
.tl-cookie-cat__top {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.tl-cookie-cat__label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}
.tl-cookie-cat__label-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #e8871e;
  cursor: pointer;
}
.tl-cookie-cat__label-wrap input[type="checkbox"]:disabled {
  cursor: not-allowed;
}
.tl-cookie-cat__label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.005em;
}
.tl-cookie-cat__always {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f2a33f;
  background: rgba(232, 135, 30, 0.1);
  border: 1px solid rgba(232, 135, 30, 0.25);
  border-radius: 3px;
}
.tl-cookie-cat__body {
  margin: 0 0 0 28px;
  font-size: 12.5px;
  color: #cfd6df;
  line-height: 1.6;
}
.tl-cookie-modal__footer {
  padding: 18px 32px 24px;
  border-top: 1px solid #1a2540;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .tl-cookie-banner__inner {
    padding: 16px 18px;
    gap: 14px;
    align-items: stretch;
  }
  .tl-cookie-banner__btns {
    width: 100%;
    justify-content: stretch;
  }
  .tl-cookie-banner__btns .tl-cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .tl-cookie-modal {
    padding: 0;
  }
  .tl-cookie-modal__card {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .tl-cookie-modal__hdr,
  .tl-cookie-modal__list,
  .tl-cookie-modal__footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .tl-cookie-modal__footer {
    justify-content: stretch;
  }
  .tl-cookie-modal__footer .tl-cookie-btn {
    flex: 1 1 auto;
  }
}

/* ─── Reduced-motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tl-cookie-banner,
  .tl-cookie-modal {
    animation: none;
  }
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes tl-cookie-banner-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes tl-cookie-modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
