:root {
  --cookie-brand: #0d6d7c;
  --cookie-brand-dark: #0b3d4e;
  --cookie-brand-soft: #e9f8fb;
  --cookie-accent: #f59e0b;
  --cookie-success: #0a8f5b;
  --cookie-danger: #dc2626;
  --cookie-panel: rgba(255, 255, 255, 0.96);
  --cookie-border: rgba(15, 23, 42, 0.08);
  --cookie-text: #0f172a;
  --cookie-muted: #475569;
  --cookie-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  display: none;
  padding: 16px 18px 20px;
  background: rgba(9, 22, 31, 0.96);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 -10px 30px rgba(2, 6, 23, 0.2);
}

.cookie-consent-banner.visible {
  display: block;
}

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-consent-copy {
  flex: 1;
  min-width: 0;
}

.cookie-consent-copy h3 {
  margin: 0 0 6px;
  color: #f8fafc;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.cookie-consent-copy p {
  margin: 0;
  color: rgba(241, 245, 249, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent-copy a {
  color: #7dd3fc;
}

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

.cookie-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  transform: translateY(-1px);
}

.cookie-btn.primary {
  background: linear-gradient(135deg, #0ea5a4, #14b8a6);
  color: #052b2b;
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.22);
}

.cookie-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-btn.tertiary {
  background: #f59e0b;
  color: #1f2937;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.22);
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(4px);
  z-index: 4500;
}

.cookie-modal-backdrop.visible {
  display: flex;
}

.cookie-modal {
  width: min(620px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: var(--cookie-panel);
  border: 1px solid var(--cookie-border);
  border-radius: 18px;
  box-shadow: var(--cookie-shadow);
  color: var(--cookie-text);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 12px;
  border-bottom: 1px solid var(--cookie-border);
}

.cookie-modal-header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: #0f172a;
}

.cookie-close-btn {
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 1.4rem;
  cursor: pointer;
}

.cookie-modal-body {
  padding: 20px 22px 18px;
}

.cookie-modal-body p {
  margin: 0 0 18px;
  color: var(--cookie-muted);
  line-height: 1.6;
}

.cookie-category {
  border: 1px solid var(--cookie-border);
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 14px;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-category-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 1rem;
}

.cookie-category small {
  display: block;
  margin-top: 5px;
  color: var(--cookie-muted);
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.cookie-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-slider {
  background: linear-gradient(135deg, var(--cookie-brand), #14b8a6);
}

.cookie-toggle input:checked + .cookie-slider::before {
  transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-slider {
  background: #94a3b8;
  cursor: not-allowed;
}

.cookie-category input:disabled + .cookie-slider::before {
  box-shadow: none;
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 22px 22px;
}

.cookie-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.cookie-settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  color: var(--cookie-brand-dark);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-footer-link {
  display: inline-block;
  margin-top: 8px;
  color: #fff !important;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.cookie-footer-link:hover,
.cookie-footer-link:focus-visible {
  color: #d4af37 !important;
}

footer,
.site-footer,
.footer {
  background: #041b44 !important;
  color: #fff !important;
}

footer *:not(.cookie-btn):not(.cookie-close-btn):not(.cookie-toggle):not(.cookie-slider),
.site-footer *,
.footer * {
  color: #fff !important;
}

footer a,
.site-footer a,
.footer a,
footer p,
.site-footer p,
.footer p,
footer li,
.site-footer li,
.footer li,
footer span,
.site-footer span,
.footer span {
  color: #fff !important;
}

@media (max-width: 720px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions .cookie-btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cookie-category-header {
    align-items: flex-start;
  }

  .cookie-modal-footer {
    justify-content: stretch;
  }

  .cookie-modal-footer .cookie-btn {
    flex: 1 1 100%;
    width: 100%;
  }
}
