.consent-preferences-button {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 69;
  min-height: 2.65rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #f8fafc;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  font: 700 0.82rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.consent-preferences-button:hover,
.consent-preferences-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(17, 24, 39, 0.94);
  outline: none;
}

.consent-preferences-button[hidden],
.consent-backdrop[hidden],
.consent-modal[hidden] {
  display: none !important;
}

.consent-backdrop {
  display: none;
}

.consent-modal {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: min(calc(100vw - 2rem), 42rem);
}

.consent-modal__panel {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.consent-modal__panel h2 {
  margin: 0;
  color: #ffffff;
  font: 800 1.3rem/1.18 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.consent-modal__copy,
.consent-modal__note {
  margin: 0.7rem 0 0;
  color: rgba(226, 232, 240, 0.86);
  font: 400 0.95rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.consent-button {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font: 800 0.9rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.consent-button--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.consent-button--solid {
  border-color: transparent;
  background: #f8fafc;
  color: #0f172a;
}

.consent-button:hover,
.consent-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .consent-modal {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }

  .consent-modal__panel {
    padding: 1rem;
  }

  .consent-modal__actions {
    justify-content: stretch;
  }

  .consent-button {
    flex: 1 1 12rem;
  }

  .consent-preferences-button {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}
