.cookie-banner,
.cookie-modal {
  font-family: inherit;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 16px;
  z-index: 1100;
  background: #ffffff;
  border: 1px solid #d8e1ea;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  padding: 14px;
}

body > #cookieBanner.cookie-banner {
  position: fixed !important;
  left: 16px !important;
  right: 16px !important;
  top: 16px !important;
  bottom: auto !important;
  z-index: 1100 !important;
}

.cookie-banner__content p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner__content p a,
.cookie-legal-links a {
  color: #1e3a8a;
  text-decoration: none;
}

.cookie-banner__content p a:hover,
.cookie-legal-links a:hover {
  text-decoration: underline;
}

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

.btn-consent-equal {
  border: 1px solid #1e3a8a;
  background: #1e3a8a;
  color: #ffffff;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.btn-consent-equal:hover,
.btn-consent-equal:focus-visible {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
}

.btn-consent-secondary {
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.btn-consent-secondary:hover,
.btn-consent-secondary:focus-visible {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.cookie-modal[hidden],
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 30, 0.5);
}

.cookie-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 32px));
  margin: 6vh auto 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #dbe4ed;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
  padding: 18px;
}

.cookie-modal__dialog h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #1b2531;
}

.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #edf2f7;
}

.cookie-row:first-of-type {
  border-top: 0;
}

.cookie-row span {
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

.cookie-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.cookie-help {
  margin: 0;
  color: #5b6b7d;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-legal-links {
  margin: 10px 0 0;
  color: #475569;
  font-size: 13px;
}

.cookie-modal__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

body.cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    top: 10px;
    padding: 12px;
  }

  body > #cookieBanner.cookie-banner {
    left: 10px !important;
    right: 10px !important;
    top: 10px !important;
    bottom: auto !important;
  }

  .cookie-banner__actions,
  .cookie-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-consent-equal,
  .btn-consent-secondary {
    width: 100%;
  }
}
