body.cookie-consent-open { overflow: hidden; }

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: rgba(10, 18, 28, 0.62);
}

.cookie-consent[hidden],
.cookie-consent-settings[hidden] {
  display: none;
}

.cookie-consent__content {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff;
  color: #212529;
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.cookie-consent__text { flex: 1; }
.cookie-consent__text h2 { margin: 0 0 8px; color: #111827; font-size: 1.35rem; }
.cookie-consent__text p { margin: 0; line-height: 1.6; }
.cookie-consent__actions { display: flex; flex-shrink: 0; gap: 12px; }

.cookie-consent__button {
  min-height: 46px;
  padding: 10px 20px;
  border: 2px solid #1f9bd1;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__button--primary { background: #1f9bd1; color: #fff; }
.cookie-consent__button--secondary { background: #fff; color: #126b91; }
.cookie-consent__button:focus-visible,
.cookie-consent-settings:focus-visible { outline: 3px solid #f0b429; outline-offset: 3px; }

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

@media (max-width: 767px) {
  .cookie-consent { padding: 12px; }
  .cookie-consent__content { max-height: calc(100dvh - 24px); padding: 20px; flex-direction: column; align-items: stretch; gap: 20px; overflow-y: auto; }
  .cookie-consent__actions { flex-direction: column-reverse; }
  .cookie-consent__button { width: 100%; }
}