.cookie-banner[hidden],
.cookie-embed-placeholder[hidden],
iframe[data-cookie-category][hidden],
.cookie-reload-note[hidden] {
  display: none !important;
}

.cookie-banner-visible {
  padding-bottom: var(--cookie-banner-height, 240px);
}

.cookie-banner {
  position: fixed;
  z-index: 10010;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  border-top: 3px solid #174a85;
  background: #fff;
  color: #334155;
  box-shadow: 0 -8px 32px rgba(1, 29, 89, 0.16);
}

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

.cookie-banner-copy {
  flex: 1 1 520px;
}

.cookie-banner h2,
.cookie-preferences h2 {
  margin: 0 0 12px;
  color: #011d59;
  font-size: 22px;
  line-height: 1.4;
}

.cookie-banner p,
.cookie-preferences p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
}

.cookie-banner-copy p {
  margin-bottom: 0;
}

.cookie-banner a,
.cookie-preferences a,
.privacy-consent a {
  color: #174a85;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex: 0 1 360px;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-button {
  flex: 1 1 150px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #011d59;
  border-radius: 5px;
  background: #011d59;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.cookie-button:hover {
  background: #174a85;
  color: #fff;
}

.cookie-button-outline {
  background: #fff;
  color: #011d59;
}

.cookie-button:focus-visible,
.cookie-close:focus-visible,
.cookie-settings-trigger:focus-visible,
.privacy-consent input:focus-visible,
.cookie-option input:focus-visible {
  outline: 3px solid #2674c6;
  outline-offset: 4px;
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid #dde5ee;
  border-radius: 12px;
  color: #334155;
  background: #fff;
  z-index: 10020;
}

.cookie-preferences::backdrop {
  background: rgba(1, 29, 89, 0.6);
}

.cookie-preferences-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #dde5ee;
  border-radius: 5px;
  background: #fff;
  color: #011d59;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cookie-option,
.privacy-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.cookie-option {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #dde5ee;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-option strong,
.cookie-option span span {
  display: block;
}

.cookie-option input,
.privacy-consent input[type="checkbox"] {
  position: static;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  opacity: 1;
  appearance: auto;
  accent-color: #174a85;
}

.privacy-consent {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
}

.contact-panel-form .privacy-consent .privacy-consent-label {
  margin: 0;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.7;
}

.privacy-consent .privacy-consent-label > span {
  color: inherit;
}

.privacy-consent a:hover,
.privacy-consent a:focus-visible {
  color: #011d59;
  text-decoration-thickness: 2px;
}

.footer-legal-links .cookie-settings-trigger {
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-embed-placeholder {
  display: flex;
  min-height: 620px;
  align-items: center;
  justify-content: flex-end;
  padding: 40px max(24px, calc((100% - 1150px) / 2));
  background: #f1f6fb;
  color: #011d59;
}

.cookie-embed-copy {
  max-width: 480px;
  padding: 24px;
  text-align: center;
}

.cookie-embed-copy p {
  color: #334155;
}

.cookie-embed-copy .cookie-button {
  display: inline-block;
}

.footer-technology {
  display: inline-block;
  margin-left: 16px;
}

.cookie-policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cookie-policy-table th,
.cookie-policy-table td {
  padding: 12px;
  border: 1px solid #dde5ee;
  text-align: left;
  vertical-align: top;
}

.cookie-policy-table th {
  background: #f1f6fb;
  color: #011d59;
}

.cookie-policy-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}

@media (max-width: 991px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner-copy,
  .cookie-actions {
    flex-basis: auto;
  }

  .cookie-embed-placeholder {
    min-height: 800px;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
  }

  .footer-technology {
    display: block;
    margin: 6px 0 0;
  }
}

@media (max-width: 575px) {
  .cookie-banner,
  .cookie-preferences {
    padding: 20px;
  }

  .cookie-button {
    flex-basis: 100%;
  }
}
