.cookie-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  display: none;
  font-family: "Graphik", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  line-height: 1.45;
}

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

.cookie-consent-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.cookie-consent-card h3,
.cookie-consent-modal__dialog h3 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cookie-consent-card p,
.cookie-consent-modal__dialog p {
  margin: 0;
  font-family: inherit;
}

.cookie-consent-card a,
.cookie-consent-modal__dialog a {
  color: #1d4ed8;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cookie-consent-actions .btn {
  white-space: nowrap;
}

.cookie-consent-actions .btn,
.cookie-consent-modal .btn {
  appearance: none;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cookie-consent-actions .btn-primary,
.cookie-consent-modal .btn-primary {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.cookie-consent-actions .btn-primary:hover,
.cookie-consent-modal .btn-primary:hover {
  background: #1f2937;
  border-color: #1f2937;
}

.cookie-consent-actions .btn-outline-primary,
.cookie-consent-modal .btn-outline-primary {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.28);
  color: #0f172a;
}

.cookie-consent-actions .btn-outline-primary:hover,
.cookie-consent-modal .btn-outline-primary:hover {
  border-color: rgba(15, 23, 42, 0.52);
  background: #f8fafc;
}

.cookie-consent-actions .btn-link,
.cookie-consent-modal .btn-link {
  background: transparent;
  border-color: transparent;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-actions .btn:focus-visible,
.cookie-consent-modal .btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.cookie-consent-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 10060;
  padding: 20px;
  font-family: "Graphik", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
}

.cookie-consent-modal.is-visible {
  display: block;
}

.cookie-consent-modal__dialog {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  max-width: 640px;
  margin: 6vh auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-consent-modal__dialog .hstack {
  display: flex;
}

.cookie-consent-modal__dialog .items-center {
  align-items: center;
}

.cookie-consent-modal__dialog .justify-between {
  justify-content: space-between;
}

.cookie-consent-modal__dialog .justify-end {
  justify-content: flex-end;
}

.cookie-consent-modal__dialog .gap-2 {
  gap: 8px;
}

.cookie-consent-modal__dialog .mt-2 {
  margin-top: 8px;
}

.cookie-consent-modal__dialog .mt-3 {
  margin-top: 12px;
}

.cookie-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-consent-option:last-child {
  border-bottom: 0;
}

.cookie-consent-option strong {
  font-size: 0.94rem;
  font-weight: 700;
}

.cookie-consent-option .form-check-input {
  width: 18px;
  height: 18px;
  accent-color: #111827;
}

.cookie-consent-hint {
  font-size: 0.9rem;
  opacity: 0.75;
}

body.dark .cookie-consent-card {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: #e5e7eb;
}

body.dark .cookie-consent-modal__dialog {
  background: rgba(17, 24, 39, 0.98);
  color: #ffffff;
}

body.dark .cookie-consent-option {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark .cookie-consent-card a,
body.dark .cookie-consent-modal__dialog a,
body.dark .cookie-consent-actions .btn-link,
body.dark .cookie-consent-modal .btn-link {
  color: #93c5fd;
}

body.dark .cookie-consent-actions .btn-primary,
body.dark .cookie-consent-modal .btn-primary {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0f172a;
}

body.dark .cookie-consent-actions .btn-primary:hover,
body.dark .cookie-consent-modal .btn-primary:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
}

body.dark .cookie-consent-actions .btn-outline-primary,
body.dark .cookie-consent-modal .btn-outline-primary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #e5e7eb;
}

body.dark .cookie-consent-actions .btn-outline-primary:hover,
body.dark .cookie-consent-modal .btn-outline-primary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .cookie-consent-card {
    padding: 14px;
  }

  .cookie-consent-actions .btn,
  .cookie-consent-modal .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .cookie-consent-modal__dialog {
    margin: 10vh auto;
    padding: 18px;
  }

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