.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  max-width: 980px;
  margin: 0 auto;
  background: #FFFFFF;
  color: #1A1F2B;
  border: 1px solid #E7EAF0;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(11, 31, 58, 0.18);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-copy h2,
.cookie-modal h2 {
  margin: 0 0 8px;
  color: #0B1F3A;
  font-size: 1.25rem;
}

.cookie-copy p {
  margin: 0;
  color: #5B6472;
}

.cookie-links {
  display: flex;
  gap: 14px;
  margin-top: 10px !important;
}

.cookie-links a {
  color: #0B1F3A;
  font-weight: 800;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.cookie-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #0B1F3A;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 920;
  display: grid;
  place-items: center;
  background: rgba(11, 31, 58, 0.58);
  padding: 18px;
}

.cookie-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 18px 42px rgba(11, 31, 58, 0.24);
}

.cookie-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #E7EAF0;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}

.cookie-category p {
  margin: 4px 0 0;
  color: #5B6472;
}

.cookie-category input {
  width: 24px;
  height: 24px;
}

.always-active {
  color: #0B1F3A;
  font-weight: 800;
}

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    flex: 1 1 100%;
  }
}
