.cookie-consent-banner {
  position: fixed;
  z-index: 1200;
  inset: auto 0 0;
  color: #061122;
  background: #ffffff;
  border-top: 1px solid #b9c8df;
  box-shadow: 0 -12px 32px rgba(1, 17, 53, 0.14);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.cookie-consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent-banner__inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-consent-banner__copy {
  max-width: 690px;
}

.cookie-consent-banner__copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.cookie-consent-banner__title {
  margin-bottom: 5px !important;
  color: #011135;
  font-size: 17px !important;
  font-weight: 800;
}

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

.cookie-consent-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #011135;
  border-radius: 2px;
  color: #011135;
  background: transparent;
  font: 700 14px/1.1 inherit;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
  background: #edf3ff;
}

.cookie-consent-button--primary {
  color: #ffffff;
  background: #011135;
}

.cookie-consent-button--primary:hover,
.cookie-consent-button--primary:focus-visible {
  color: #ffffff;
  background: #073477;
}

.cookie-consent-button--text {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-dialog-layer {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 8, 29, 0.54);
  opacity: 0;
  transition: opacity 180ms ease;
}

.cookie-consent-dialog-layer[hidden] {
  display: none;
}

.cookie-consent-dialog-layer.is-open {
  opacity: 1;
}

.cookie-consent-dialog {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 30px;
  color: #061122;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 8, 29, 0.32);
  transform: translateY(12px);
  transition: transform 180ms ease;
}

.cookie-consent-dialog-layer.is-open .cookie-consent-dialog {
  transform: translateY(0);
}

.cookie-consent-dialog__header,
.cookie-consent-dialog__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent-dialog__eyebrow {
  margin: 0 0 6px;
  color: #5071bb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-consent-dialog h2 {
  margin: 0;
  color: #011135;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
}

.cookie-consent-dialog__intro,
.cookie-consent-dialog__note {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.cookie-consent-dialog__note {
  padding: 12px 14px;
  border-left: 3px solid #5071bb;
  color: #34445c;
  background: #f4f8ff;
  font-size: 14px;
}

.cookie-consent-icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #b9c8df;
  border-radius: 2px;
  color: #011135;
  background: #ffffff;
  font: 400 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.cookie-consent-icon-button:hover,
.cookie-consent-icon-button:focus-visible {
  background: #edf3ff;
}

.cookie-consent-categories {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.cookie-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid #d9e2f1;
  cursor: pointer;
}

.cookie-consent-category__copy {
  display: grid;
  gap: 4px;
}

.cookie-consent-category__copy strong {
  color: #011135;
  font-size: 16px;
}

.cookie-consent-category__copy small {
  color: #34445c;
  font-size: 14px;
  line-height: 1.4;
}

.cookie-consent-category input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cookie-consent-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border: 1px solid #71819b;
  border-radius: 20px;
  background: #ffffff;
}

.cookie-consent-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #71819b;
  content: "";
  transition: transform 160ms ease, background-color 160ms ease;
}

.cookie-consent-category input:checked + .cookie-consent-switch {
  border-color: #011135;
  background: #011135;
}

.cookie-consent-category input:checked + .cookie-consent-switch::after {
  background: #ffffff;
  transform: translateX(20px);
}

.cookie-consent-category input:focus-visible + .cookie-consent-switch {
  outline: 3px solid rgba(80, 113, 187, 0.42);
  outline-offset: 3px;
}

.cookie-consent-category.is-required {
  cursor: default;
}

.cookie-consent-category.is-required .cookie-consent-switch {
  opacity: 0.72;
}

.cookie-consent-dialog__footer {
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #d9e2f1;
}

.cookie-consent-dialog__footer > a,
.cookie-settings-link {
  color: #011135;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible,
.cookie-consent-dialog__footer > a:hover,
.cookie-consent-dialog__footer > a:focus-visible {
  color: #0f5ea8;
}

.cookie-consent-status {
  min-height: 1.2em;
  margin: 16px 0 0;
  color: #34445c;
  font-size: 13px;
}

body.cookie-consent-dialog-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .cookie-consent-banner__inner {
    width: min(100% - 32px, 620px);
    display: block;
    padding: 18px 0;
  }

  .cookie-consent-banner__actions {
    justify-content: flex-start;
    margin-top: 15px;
  }

  .cookie-consent-button {
    min-width: 0;
  }

  .cookie-consent-dialog-layer {
    align-items: end;
    padding: 0;
  }

  .cookie-consent-dialog {
    max-height: 92vh;
    padding: 24px 18px 20px;
  }

  .cookie-consent-dialog__footer {
    display: block;
  }

  .cookie-consent-dialog__actions {
    justify-content: flex-start;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner,
  .cookie-consent-dialog-layer,
  .cookie-consent-dialog,
  .cookie-consent-switch::after,
  .cookie-consent-button {
    transition-duration: 0.01ms;
  }
}
