.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 10, 18, 0.96);
  border-top: 1px solid rgba(207, 163, 255, 0.25);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

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

.cookie-consent-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-consent-banner__text {
  flex: 1 1 280px;
  min-width: 0;
}

.cookie-consent-banner__title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.cookie-consent-banner__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted, #b8b0c8);
  line-height: 1.45;
}

.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-consent-modal {
  z-index: 1300;
}

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

.cookie-consent-modal.show {
  display: flex;
}

.cookie-consent-modal__panel {
  max-width: 520px;
}

.cookie-consent-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-consent-option {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-consent-option:last-of-type {
  border-bottom: 0;
}

.cookie-consent-option__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.cookie-consent-option__badge {
  font-size: 0.75rem;
  color: var(--text-muted, #b8b0c8);
  white-space: nowrap;
}

.cookie-consent-option--toggle {
  display: block;
  cursor: pointer;
}

.cookie-consent-option--toggle input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent, #cfa3ff);
}

body.has-app-bottom-nav .cookie-consent-banner {
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640px) {
  .cookie-consent-banner__actions {
    width: 100%;
  }

  .cookie-consent-banner__actions .btn {
    flex: 1 1 auto;
  }
}
