.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(980px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.22);
}

.cookie-consent.is-preferences-open {
  align-items: start;
}

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

.cookie-consent-kicker {
  display: inline-block;
  margin-bottom: 4px;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.cookie-consent p {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-consent-actions .btn {
  min-height: 42px;
  white-space: nowrap;
}

.cookie-preferences {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cookie-preferences[hidden] {
  display: none;
}

.cookie-preference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #f8fafc;
}

.cookie-preference strong {
  display: block;
  margin-bottom: 3px;
  color: #111827;
}

.cookie-preference small {
  display: block;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cookie-preference input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #2563eb;
}

.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.footer-cookie-settings {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: var(--accent);
  transform: translateX(5px);
}

@media (max-width: 767.98px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    width: auto;
    padding: 14px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-preference,
  .cookie-preferences-actions {
    grid-template-columns: 1fr;
  }

  .cookie-preferences-actions {
    display: grid;
  }
}
