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

.cookie-banner {
  position: fixed;
  z-index: 2500;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: #fff;
}

.cookie-banner__content {
  display: grid;
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin: 0 auto;
  padding: 27px 30px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: #012847;
  box-shadow: 0 22px 60px rgba(0, 18, 34, .34);
}

.cookie-banner__eyebrow {
  margin-bottom: 6px;
  color: #febd2b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cookie-banner h2,
.cookie-modal h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.cookie-banner p {
  max-width: 720px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.7;
}

.cookie-banner p a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: grid;
  min-width: 220px;
  gap: 8px;
}

.cookie-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.cookie-button--primary {
  color: #07131d;
  background: #febd2b;
}

.cookie-button--primary:hover {
  background: #ffc94f;
}

.cookie-button--secondary {
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  background: transparent;
}

.cookie-button--secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

.cookie-button--text {
  min-height: 32px;
  padding: 5px;
  color: rgba(255, 255, 255, .76);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-modal {
  position: fixed;
  z-index: 2600;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 32, .7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal__dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 14px;
  outline: none;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 18, 32, .4);
}

.cookie-modal__header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  color: #012847;
}

.cookie-modal__close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid #dce3e8;
  border-radius: 50%;
  color: #012847;
  background: #fff;
  font-size: 25px;
  line-height: 34px;
  cursor: pointer;
}

.cookie-modal__intro {
  margin: 16px 0 24px;
  color: #627183;
  font-size: 13px;
  line-height: 1.7;
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 25px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #e2e7eb;
}

.cookie-category__copy strong {
  color: #012847;
  font-size: 14px;
}

.cookie-category__copy p {
  margin: 6px 0 0;
  color: #6b7989;
  font-size: 12px;
  line-height: 1.6;
}

.cookie-switch {
  display: grid;
  grid-template-columns: 42px;
  justify-items: center;
  gap: 5px;
  margin: 0;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.cookie-switch span {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 15px;
  background: #cbd4db;
  transition: background .18s ease;
}

.cookie-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(1, 40, 71, .28);
  content: '';
  transition: transform .18s ease;
}

.cookie-switch input:checked + span {
  background: #012847;
}

.cookie-switch input:checked + span::after {
  transform: translateX(18px);
}

.cookie-switch input:focus-visible + span {
  outline: 3px solid rgba(254, 189, 43, .45);
  outline-offset: 2px;
}

.cookie-switch em {
  width: 92px;
  color: #687786;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.cookie-switch--locked {
  cursor: default;
}

.cookie-switch--locked span {
  opacity: .72;
}

.cookie-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.cookie-modal__actions .cookie-button--primary {
  min-width: 170px;
}

.cookie-modal__actions .cookie-button--secondary {
  border-color: #b9c5ce;
  color: #012847;
}

.cookie-modal__actions .cookie-button--secondary:hover {
  border-color: #012847;
  background: #f3f5f7;
}

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

.footer-legal-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-cookie-settings {
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, .58);
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.footer-cookie-settings:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .cookie-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .cookie-banner__content {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 22px 20px;
  }

  .cookie-banner__actions {
    min-width: 0;
  }

  .cookie-modal {
    align-items: flex-end;
    padding: 8px;
  }

  .cookie-modal__dialog {
    max-height: calc(100vh - 16px);
    padding: 25px 19px;
    border-radius: 12px;
  }

  .cookie-category {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .cookie-switch {
    grid-template-columns: 42px auto;
    justify-self: start;
    align-items: center;
  }

  .cookie-switch em {
    width: auto;
    text-align: left;
  }

  .cookie-modal__actions {
    flex-direction: column;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}
