.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  padding: 16px max(16px, calc((100vw - var(--max, 1180px)) / 2));
  pointer-events: none;
}

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

.cookie-consent__panel {
  pointer-events: auto;
  max-width: var(--max, 1180px);
  margin: 0 auto;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--border, #b8cfe0);
  border-top: 4px solid #21618c;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 40px rgba(23, 23, 23, 0.18);
}

.cookie-consent__eyebrow {
  margin: 0 0 6px;
  color: #21618c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-consent__panel h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
}

.cookie-consent__panel p {
  margin: 0;
  color: var(--muted, #626262);
  font-size: 15px;
  line-height: 1.55;
}

.cookie-consent__link {
  color: #21618c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__link:hover {
  color: #1a4d70;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.cookie-consent__actions--details {
  margin-top: 16px;
}

.cookie-consent__btn-outline {
  background: #fff !important;
  color: #21618c !important;
  border: 2px solid #21618c !important;
}

.cookie-consent__btn-outline:hover {
  background: #e8f1f8 !important;
  color: #1a4d70 !important;
}

.cookie-consent__text-btn {
  margin-left: auto;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: #21618c;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-consent__text-btn:hover {
  color: #1a4d70;
}

.cookie-consent__details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #b8cfe0);
}

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

.cookie-consent__category {
  padding: 16px 0;
}

.cookie-consent__category + .cookie-consent__category {
  border-top: 1px solid var(--border, #b8cfe0);
}

.cookie-consent__category-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cookie-consent__category h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.cookie-consent__badge {
  padding: 4px 10px;
  background: #e8f1f8;
  color: #21618c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
}

.cookie-consent__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__toggle input {
  width: 18px;
  height: 18px;
  accent-color: #21618c;
}

body.cookie-consent-open {
  padding-bottom: 0;
}

.footer-legal .footer-cookie-settings,
.footer-bottom .footer-cookie-settings {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.footer-legal .footer-cookie-settings:hover,
.footer-bottom .footer-cookie-settings:hover {
  color: #fff;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .cookie-consent {
    padding: 0;
  }

  .cookie-consent__panel {
    border-radius: 12px 12px 0 0;
    padding: 20px 18px;
  }

  .cookie-consent__text-btn {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }

  .cookie-consent__actions .button {
    flex: 1 1 auto;
    min-width: calc(50% - 6px);
  }
}
