.cookie-consent-banner,
.cookie-consent-modal,
.cookie-consent-overlay {
  z-index: 10000;
}

.cookie-consent-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  display: flex;
  width: min(760px, calc(100% - 48px));
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.cookie-consent-banner[hidden],
.cookie-consent-overlay[hidden],
.cookie-consent-modal[hidden] {
  display: none;
}

.cookie-consent-banner-content {
  display: grid;
  gap: 6px;
}

.cookie-consent-banner-content strong {
  color: #111827;
}

.cookie-consent-banner-content p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent-actions,
.cookie-consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.cookie-btn {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.cookie-btn-primary {
  background: #d90429;
  color: #fff;
}

.cookie-btn-primary:hover {
  background: #a8031f;
}

.cookie-btn-secondary {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
}

.cookie-btn-secondary:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #111827;
}

.cookie-btn-link {
  min-height: 40px;
  background: transparent;
  color: #d90429;
  box-shadow: none;
}

.cookie-btn-link:hover {
  background: #fff1f2;
  color: #a8031f;
  transform: none;
}

.footer-cookie-preferences {
  justify-content: flex-start;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.footer-cookie-preferences:hover {
  background: transparent;
  color: var(--accent);
  transform: none;
}

.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.cookie-consent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  transform: translate(-50%, -50%);
}

.cookie-consent-modal-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-consent-eyebrow {
  margin: 0 0 4px;
  color: #d90429;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-consent-modal h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
}

.cookie-consent-close {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.cookie-consent-close:hover {
  background: #f9fafb;
  color: #111827;
  transform: none;
}

.cookie-consent-modal-text {
  margin: 14px 0 18px;
  color: #6b7280;
  font-size: 14px;
}

.cookie-consent-options {
  display: grid;
  gap: 12px;
}

.cookie-consent-option {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.cookie-consent-option strong {
  color: #111827;
}

.cookie-consent-option p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch span:last-child {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.18s ease;
}

.cookie-switch span:last-child::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s ease;
}

.cookie-switch input:checked + span:last-child {
  background: #d90429;
}

.cookie-switch input:checked + span:last-child::after {
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + span:last-child {
  outline: 3px solid rgba(217, 4, 41, 0.28);
  outline-offset: 2px;
}

.cookie-switch input:disabled + span:last-child {
  cursor: not-allowed;
  opacity: 0.75;
}

.cookie-consent-modal-actions {
  margin-top: 18px;
}

.cookie-consent-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .cookie-consent-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .cookie-consent-actions,
  .cookie-consent-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-consent-modal {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 8px 8px 0 0;
    transform: none;
  }

  .cookie-consent-option {
    align-items: flex-start;
  }
}
