.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 18px));
  z-index: 10050;
  background: rgba(10, 19, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(8, 14, 24, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e6edf5;
  padding: 14px;
}

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

.cookie-banner__inner {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: #d7e3ef;
}

.cookie-banner__text a {
  color: #b8dbff;
  font-weight: 700;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.cookie-btn--primary {
  background: #1f8fff;
  border-color: #1f8fff;
  color: #fff;
}

.cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ecf4fb;
}

.cookie-btn--link {
  background: transparent;
  color: #b8dbff;
  border-color: rgba(184, 219, 255, 0.35);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
}

.cookie-modal.is-open {
  display: block;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.6);
}

.cookie-modal__dialog {
  position: relative;
  width: min(640px, calc(100% - 18px));
  margin: 12vh auto 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f1d2d;
  color: #e7eef7;
  box-shadow: 0 20px 52px rgba(5, 11, 20, 0.46);
  padding: 18px;
  text-align: left;
}

.cookie-modal__title {
  margin: 0 0 10px;
  font-size: 22px;
}

.cookie-modal__desc {
  margin: 0 0 14px;
  color: #c0cfdd;
  line-height: 1.55;
}

.cookie-group {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 10px;
}

.cookie-group__row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.cookie-group__title {
  margin: 0;
  font-size: 16px;
}

.cookie-group__text {
  margin: 8px 0 0;
  color: #c7d4e1;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-toggle {
  width: 42px;
  height: 24px;
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal__dialog {
    margin-top: 8vh;
  }
}
