.cookie-consent {
  position: fixed;
  z-index: 120;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent.is-hidden {
  display: none;
}

.cookie-consent__panel {
  box-sizing: border-box;
  width: min(100%, 640px);
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #b8c7d8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(12, 22, 32, 0.22);
  color: #0c1620;
  pointer-events: auto;
}

.cookie-consent__panel h2,
.cookie-consent__panel p {
  margin: 0;
}

.cookie-consent__panel h2 {
  font-size: 1.25rem;
}

.cookie-consent__label {
  margin-top: 12px !important;
  color: #0c3e7a;
  font-weight: 700;
}

.cookie-consent__label + p {
  margin-top: 8px;
  color: #536274;
}

.cookie-consent__legal {
  margin-top: 12px !important;
  color: #536274;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.cookie-consent__legal a {
  color: #0c3e7a;
  font-weight: 700;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.cookie-consent__button,
.cookie-consent__close {
  min-height: 44px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__button {
  padding: 10px 14px;
}

.cookie-consent__button--primary {
  border: 1px solid #135fb8;
  background: #ffffff;
  color: #0c3e7a;
}

.cookie-consent__button--secondary {
  border: 1px solid #135fb8;
  background: #ffffff;
  color: #0c3e7a;
}

.cookie-consent__close {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #0c3e7a;
}

.cookie-consent__button:focus-visible,
.cookie-consent__close:focus-visible {
  outline: 3px solid #0c3e7a;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .cookie-consent__panel {
    padding: 20px;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}
