.consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 32, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
  backdrop-filter: blur(6px);
}

.consent-banner {
  background: #ffffff;
  color: #1f2937;
  width: min(760px, 94vw);
  border-radius: 22px;
  border: 1px solid #e3ebf6;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
  padding: 28px;
  position: relative;
  z-index: 61;
  max-height: 90vh;
  overflow: auto;
}

.consent-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 130px;
  background: linear-gradient(135deg, #e9f2ff 0%, #f7fbff 60%, #ffffff 100%);
  pointer-events: none;
}

.consent-banner > * {
  position: relative;
  z-index: 1;
}

.consent-banner__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #31557f;
}

.consent-banner__text {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #4b5563;
}

.consent-banner__link {
  color: #4e759f;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.consent-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 6px;
}

.consent-actions--details {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.consent-btn {
  border: 1px solid #cdd9ea;
  border-radius: 999px;
  padding: 11px 18px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.consent-btn:focus-visible {
  outline: 3px solid rgba(103, 147, 196, 0.35);
  outline-offset: 2px;
}

.consent-btn--primary {
  background: linear-gradient(135deg, #4e759f 0%, #6b92c2 100%);
  border-color: #4e759f;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(78, 117, 159, 0.25);
}

.consent-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(78, 117, 159, 0.3);
}

.consent-btn--ghost {
  background: rgba(255, 255, 255, 0.6);
}

.consent-btn--soft {
  background: #f4f8ff;
  border-color: #d7e4f6;
  color: #2b4866;
}

.consent-details {
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.consent-categories {
  display: grid;
  gap: 12px;
}

.consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.consent-category__title {
  font-weight: 700;
  margin-bottom: 4px;
  color: #1f2937;
}

.consent-category__desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.consent-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #1f2937;
}

.consent-switch input {
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #cdd9ea;
  background: #e2e8f0;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.consent-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.consent-switch input:checked {
  background: #6793c4;
  border-color: #5b86b9;
}

.consent-switch input:checked::after {
  transform: translateX(20px);
}

.consent-switch input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .consent-banner {
    padding: 22px;
  }

  .consent-banner__title {
    font-size: 22px;
  }

  .consent-actions {
    grid-template-columns: 1fr;
  }

  .consent-category {
    flex-direction: column;
    align-items: flex-start;
  }
}
