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

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #eef7fa;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #0b2436;
  box-shadow: 0 20px 60px rgba(4, 18, 28, 0.34);
}

.cookie-banner h2,
.cookie-dialog h2 {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.2;
}

.cookie-banner p,
.cookie-option p {
  margin: 0;
  line-height: 1.5;
}

.cookie-banner a {
  display: inline-block;
  margin-top: 7px;
  color: #77e5d2;
  font-weight: 700;
}

.cookie-banner-actions,
.cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.cookie-button,
.cookie-manage,
.cookie-close {
  font: inherit;
  cursor: pointer;
}

.cookie-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #77e5d2;
  border-radius: 10px;
  font-weight: 800;
}

.cookie-button.primary {
  color: #06231f;
  background: #77e5d2;
}

.cookie-button.secondary {
  color: #eef7fa;
  background: transparent;
}

.cookie-dialog {
  width: min(600px, calc(100% - 32px));
  padding: 0;
  color: #0b2436;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(4, 18, 28, 0.38);
}

.cookie-dialog::backdrop {
  background: rgba(4, 18, 28, 0.62);
}

.cookie-dialog form {
  padding: 24px;
}

.cookie-dialog-header,
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-dialog-header {
  margin-bottom: 18px;
}

.cookie-eyebrow {
  margin: 0 0 5px;
  color: #087d71;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-close {
  width: 40px;
  height: 40px;
  color: #0b2436;
  border: 1px solid #cbd8de;
  border-radius: 50%;
  background: #fff;
  font-size: 25px;
}

.cookie-option {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #dbe5e9;
  border-radius: 12px;
}

.cookie-option p {
  margin-top: 4px;
  color: #536974;
  font-size: 14px;
}

.cookie-option input {
  width: 22px;
  height: 22px;
  accent-color: #087d71;
}

.cookie-dialog-actions {
  margin-top: 22px;
}

.cookie-dialog .cookie-button.secondary {
  color: #0b2436;
  border-color: #9db0b8;
}

.cookie-manage {
  width: fit-content;
  padding: 0;
  color: #087d71;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-button:focus-visible,
.cookie-manage:focus-visible,
.cookie-close:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: block;
    width: auto;
    padding: 18px;
  }

  .cookie-banner-actions {
    margin-top: 16px;
    justify-content: stretch;
  }

  .cookie-banner-actions .cookie-button {
    flex: 1 1 145px;
  }

  .cookie-dialog-actions .cookie-button {
    width: 100%;
  }
}
