.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: rgba(34, 0, 52, 0.78);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 -18px 44px rgba(36, 14, 63, 0.18);
}

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

.cookie-banner__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-banner__text {
  margin: 0;
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.4;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.cookie-banner__link {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  color: #ffd84d;
}

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

.cookie-banner__actions .cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9010;
  background: rgba(22, 0, 34, 0.46);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.cookie-overlay.is-open {
  display: flex;
}

.cookie-panel {
  width: min(820px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(36, 14, 63, 0.12);
  box-shadow: 0 20px 36px rgba(36, 14, 63, 0.22);
  padding: 18px;
  display: grid;
  gap: 12px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.cookie-panel h2 {
  margin: 0;
  font-size: 1.16rem;
  color: #171225;
  letter-spacing: 0;
}

.cookie-panel p {
  margin: 0;
  color: #5f5870;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-options {
  display: grid;
  gap: 8px;
}

.cookie-option {
  border: 1px solid rgba(36, 14, 63, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  background: #fcfbff;
}

.cookie-option input[type="checkbox"] {
  margin-top: 3px;
  width: 1rem;
  height: 1rem;
  accent-color: #6213a4;
}

.cookie-option__title {
  display: block;
  font-size: 0.9rem;
  color: #171225;
  font-weight: 800;
}

.cookie-option__text {
  display: block;
  font-size: 0.82rem;
  color: #6e687c;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 31px;
  padding: 0.8rem 1.45rem;
  cursor: pointer;
  font: 800 0.9rem/1 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}

.cookie-btn--primary {
  background: linear-gradient(135deg, #220034 0%, #7323c7 58%, #ffc400 145%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 10px 20px rgba(36, 14, 63, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.cookie-btn--primary:hover,
.cookie-btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(36, 14, 63, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.cookie-btn--ghost {
  background: rgba(36, 14, 63, 0.08);
  color: #241033;
  border: 1px solid rgba(36, 14, 63, 0.18);
}

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

  .cookie-banner__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cookie-panel {
    border-radius: 18px;
  }

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

  .cookie-actions .cookie-btn,
  .cookie-banner__actions .cookie-btn {
    width: 100%;
  }
}
