/* Cookie banner (markup and behaviour: includes/consent.html).
 *
 * A white card at the bottom centre, sitting just above the floating contact
 * bar (includes/css/floating-menu.css: 2.5rem tall, 14px from the bottom) so
 * it never covers it. Accept and Decline are the same size, so declining is
 * as easy as accepting. Site colours only: navy #0f1f63.
 * Standalone: no Tailwind classes, every class starts with "tc-consent".
 * Above the contact bar (z-index 45), below the navbar (z-index 50).
 */

.tc-consent {
  position: fixed;
  right: 12px;
  bottom: calc(14px + 2.5rem + 10px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 46;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
  max-width: 26rem;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  color: #0f1f63;
  box-shadow: 0 10px 30px rgba(15, 31, 99, 0.18), 0 0 0 1px rgba(15, 31, 99, 0.08);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
}

.tc-consent[hidden] {
  display: none;
}

.tc-consent__text {
  margin: 0;
}

.tc-consent__actions {
  display: flex;
  gap: 0.5rem;
}

.tc-consent__btn {
  flex: 1;
  min-height: 2.5rem;
  margin: 0;
  padding: 0 1rem;
  border: 1.5px solid #0f1f63;
  border-radius: 9999px;
  background: #fff;
  color: #0f1f63;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tc-consent__btn:hover {
  background: #f1f4fb;
}

.tc-consent__btn--accept {
  background: #0f1f63;
  color: #fff;
}

.tc-consent__btn--accept:hover {
  background: #1a2d80;
}

.tc-consent__btn:focus-visible {
  outline: 2px solid #0f1f63;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .tc-consent__btn {
    transition: none;
  }
}

@media print {
  .tc-consent {
    display: none;
  }
}
