/* Cookie banner — ported from ../elevate-etiquette-site react-app/src/styles.css.
   Semantic tokens there resolve to these base tokens. */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100; /* above the fixed site header */
  background-color: var(--color-stone);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-light-gray);
  box-shadow: 0 -12px 40px rgba(61, 58, 55, 0.08);
  font-family: var(--font-body);
  animation: cookie-banner-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cookie-banner-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--color-slate-gray);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cookie-banner-close:hover { color: var(--color-near-black); }

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.015em;
  color: var(--color-near-black);
  max-width: 640px;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.cookie-btn-primary,
.cookie-btn-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.160em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
}

.cookie-btn-primary {
  color: var(--color-white);
  background-color: var(--color-near-black);
  border: 1px solid var(--color-near-black);
  padding: 1rem 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-btn-primary:hover {
  background-color: var(--color-white);
  color: var(--color-near-black);
}

.cookie-btn-text {
  color: var(--color-near-black);
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 0 0 4px;
  transition: color 0.3s ease;
}

.cookie-btn-text:hover,
.cookie-btn-text:focus-visible { color: #3a6b8c; } /* ocean-blue-deep, AA on stone */

.cookie-btn-text:focus-visible {
  outline: 2px solid #3a6b8c;
  outline-offset: 3px;
}

.cookie-pref {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.040em;
  text-transform: uppercase;
  color: var(--color-near-black);
  cursor: pointer;
  user-select: none;
}

.cookie-pref input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-near-black);
  cursor: pointer;
}

.cookie-pref:has(input:disabled) {
  color: var(--color-slate-gray);
  cursor: default;
}

@media (max-width: 767px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1rem 2rem;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }

  .cookie-btn-primary,
  .cookie-btn-text { font-size: 12px; }
}
