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

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  width: min(760px, calc(100% - 48px));
  padding: 22px 24px;
  color: #1c2944;
  background: #fff;
  border: 1px solid #d7dfea;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(17, 34, 68, .2);
}

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

.cookie-consent a {
  color: #0055a8;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.cookie-consent__button {
  min-height: 42px;
  padding: 9px 16px;
  color: #fff;
  background: #263977;
  border: 1px solid #263977;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent__button--secondary {
  color: #263977;
  background: #fff;
}

.cookie-consent__button:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 3px solid #f0ae3d;
  outline-offset: 2px;
}

.cookie-settings-link {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 600px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 18px;
  }

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

  .cookie-consent__button {
    width: 100%;
  }
}
