/* One-time cookie usage notice — shared by the public site and the Admin Dashboard,
   like admin-entry-alert.css, so the component lives in one place. */

/* Sits above the sticky header (1040) but below the TempData toast overlay (1060)
   and the trainee modal shell (1200). */
.cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1055;
  background: var(--paper);
  border-top: 1px solid var(--stroke);
  box-shadow: 0 -8px 25px rgba(6, 58, 37, 0.1);
  animation: cookie-consent-slide-up 0.35s ease-out;
}

@keyframes cookie-consent-slide-up {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stacked: title, then text, then the accept button underneath. */
.cookie-consent__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.cookie-consent__content {
  min-width: 0;
}

.cookie-consent__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 6px;
}

.cookie-consent__text {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.cookie-consent__accept {
  flex-shrink: 0;
  background: var(--green-800);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-lg);
  padding: 10px 34px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-consent__accept:hover {
  background: var(--green-900);
}

.cookie-consent__accept:focus-visible {
  outline: 2px solid var(--green-900);
  outline-offset: 3px;
}

.cookie-consent.is-hidden {
  display: none;
}

@media (max-width: 767.98px) {
  .cookie-consent__inner {
    align-items: stretch;
    padding: 16px 18px;
  }

  .cookie-consent__accept {
    width: 100%;
  }
}
