/* ── Cookie lišta (brand manuál 5.11) ─────────────────────────────────────── */
/* Vlevo dole, neprůhledný Grafit, klidný nájezd opacity + posun 16 px (320 ms),
   odjezd 220 ms, bez pružiny a třesení. Přijmout a Odmítnout jsou stejně velká
   a stejně viditelná tlačítka (Impuls + sekundární). Logika souhlasu je v consent.js. */
.consent-overlay {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(400px, calc(100% - 32px));
  pointer-events: none;
}

.consent-card {
  pointer-events: auto;
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 22px;
  border-radius: 18px;
  background-color: var(--grafit, #15171f);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--hvezda, #e9ecf3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms cubic-bezier(.2, .7, .2, 1), transform 320ms cubic-bezier(.2, .7, .2, 1);
}
.consent-card.is-visible { opacity: 1; transform: none; }
.consent-card.is-exiting {
  opacity: 0;
  transform: translateY(16px);
  transition-duration: 220ms;
}

.consent-title {
  font-family: var(--font-body, 'Geist', system-ui, sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hvezda, #e9ecf3);
  margin: 0 0 8px;
}

.consent-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--prach, #c3c8d8);
  margin: 0 0 16px;
}

/* Odkaz v textu (manuál 5.3) */
.consent-text a {
  color: var(--mlhovina, #a78bfa);
  font-weight: 500;
  text-decoration: underline 1px;
  text-decoration-color: rgba(167, 139, 250, .45);
  text-underline-offset: 3px;
  outline: 2px solid transparent;
  outline-offset: 3px;
  border-radius: 3px;
  transition: color 240ms cubic-bezier(.2, .7, .2, 1), text-decoration-color 240ms cubic-bezier(.2, .7, .2, 1), outline-color 240ms cubic-bezier(.2, .7, .2, 1);
}
.consent-text a:focus-visible { outline-color: var(--mlhovina, #a78bfa); }
@media (hover: hover) { .consent-text a:hover { color: var(--hvezda, #e9ecf3); text-decoration-color: var(--mlhovina, #a78bfa); } }

.consent-actions { display: flex; gap: 10px; }

/* Tlačítka: Přijmout = pilulka Impuls (hover nezesvětluje), Odmítnout = sekundární */
.consent-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font: 600 15px/1 var(--font-body, 'Geist', system-ui, sans-serif);
  cursor: pointer;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
  transition:
    box-shadow 280ms cubic-bezier(.2, .7, .2, 1),
    transform 280ms cubic-bezier(.2, .7, .2, 1),
    background-color 280ms cubic-bezier(.2, .7, .2, 1),
    border-color 280ms cubic-bezier(.2, .7, .2, 1),
    color 280ms cubic-bezier(.2, .7, .2, 1);
}
.consent-btn--accept {
  background-color: var(--impuls, #6d5efc);
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(10, 11, 15, 0), 0 0 0 0 rgba(167, 139, 250, 0), 0 10px 40px -10px rgba(109, 94, 252, .5);
}
.consent-btn--reject {
  background-color: rgba(109, 94, 252, 0);
  border-color: rgba(233, 236, 243, .24);
  color: var(--hvezda, #e9ecf3);
  box-shadow: 0 0 0 0 rgba(10, 11, 15, 0), 0 0 0 0 rgba(167, 139, 250, 0), 0 10px 40px -10px rgba(109, 94, 252, 0);
}
@media (hover: hover) {
  .consent-btn--accept:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 0 0 rgba(10, 11, 15, 0), 0 0 0 4px rgba(109, 94, 252, .18), 0 14px 50px -10px rgba(109, 94, 252, .75);
  }
  .consent-btn--reject:hover:not(:disabled) {
    transform: translateY(-2px);
    background-color: rgba(109, 94, 252, .12);
    border-color: rgba(167, 139, 250, .55);
    box-shadow: 0 0 0 0 rgba(10, 11, 15, 0), 0 0 0 4px rgba(109, 94, 252, .12), 0 14px 50px -10px rgba(109, 94, 252, .4);
  }
}
.consent-btn:focus-visible { outline: none; }
.consent-btn--accept:focus-visible { box-shadow: 0 0 0 2px #0a0b0f, 0 0 0 4px #a78bfa, 0 14px 50px -10px rgba(109, 94, 252, .75); }
.consent-btn--reject:focus-visible { box-shadow: 0 0 0 2px #0a0b0f, 0 0 0 4px #a78bfa, 0 10px 40px -10px rgba(109, 94, 252, 0); }
.consent-btn:active:not(:disabled) { transform: scale(.97); transition-duration: 220ms; }
.consent-btn:disabled { cursor: default; }

@media (max-width: 600px) {
  .consent-overlay { left: 16px; right: 16px; bottom: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .consent-card, .consent-btn { transition-property: opacity, box-shadow, background-color, border-color, color; }
  .consent-card, .consent-card.is-exiting { transform: none; }
  .consent-btn:hover, .consent-btn:active { transform: none !important; }
}
