.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 90;
  color: #f8f4ec;
}

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

.cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px 24px;
  background: rgba(18, 39, 54, .98);
  border-top: 2px solid #d6bb8b;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .32);
  backdrop-filter: blur(16px);
}

.cookie-banner__title,
.cookie-dialog__title {
  margin: 0 0 7px;
  color: #d6bb8b;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cookie-banner__copy,
.cookie-dialog__copy,
.cookie-choice p {
  margin: 0;
  line-height: 1.65;
}

.cookie-banner__copy { max-width: 720px; font-size: .9rem; }

.cookie-banner__actions,
.cookie-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-button,
.footer-cookie-settings,
.cookie-dialog__close {
  font: inherit;
  cursor: pointer;
}

.cookie-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: transparent;
  color: #fff;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .035em;
}

.cookie-button:hover,
.cookie-button:focus-visible { border-color: #d6bb8b; }
.cookie-button--plain { border-color: transparent; }
.cookie-button--gold { border-color: #d6bb8b; background: #d6bb8b; color: #172c3c; }

.footer-cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-dialog {
  width: min(610px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  color: #172c3c;
  background: #f7f4ed;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

.cookie-dialog::backdrop { background: rgba(7, 20, 30, .72); backdrop-filter: blur(4px); }
.cookie-dialog__panel { padding: 28px; }
.cookie-dialog__header { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.cookie-dialog__title { color: #8d7042; font-size: .84rem; }
.cookie-dialog__copy { margin-bottom: 22px; color: #43515b; font-size: .94rem; }
.cookie-dialog__close { width: 38px; height: 38px; border: 1px solid #c9c3b9; background: transparent; color: #172c3c; font-size: 1.35rem; line-height: 1; }

.cookie-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 19px 0;
  border-top: 1px solid #d9d3c9;
}

.cookie-choice strong { display: block; margin-bottom: 5px; font-size: .95rem; }
.cookie-choice p { color: #5b656c; font-size: .84rem; }
.cookie-choice__status { color: #8d7042; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.cookie-choice input { width: 22px; height: 22px; accent-color: #172c3c; }
.cookie-dialog__actions { padding-top: 22px; border-top: 1px solid #d9d3c9; }
.cookie-dialog .cookie-button--gold { color: #172c3c; }

html[dir="rtl"] .cookie-banner__actions,
html[dir="rtl"] .cookie-dialog__actions { justify-content: flex-start; }

@media (max-width: 820px) {
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; }
  .cookie-banner__inner { grid-template-columns: 1fr; gap: 17px; padding: 20px; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-button { flex: 1 1 145px; }
}

@media (max-width: 520px) {
  .cookie-banner__copy { font-size: .82rem; }
  .cookie-button { flex-basis: 100%; }
  .cookie-dialog__panel { padding: 22px 19px; }
}

