.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 3000;
  max-width: 42rem;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  padding: 1.25rem;
}

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

.consent-summary {
  margin-bottom: 1rem;
}

.consent-banner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.consent-banner p {
  margin: 0 0 1rem;
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.6;
}

.consent-banner a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.consent-actions .btn {
  min-width: 12rem;
}

.consent-actions .btn-secondary {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.16);
  color: #1a1a1a;
}

.consent-actions .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}

.consent-details {
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1rem;
}

.consent-category + .consent-category {
  margin-top: 1rem;
}

.consent-category-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.consent-category h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.consent-category-head p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.consent-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #1a1a1a;
  white-space: nowrap;
}

.consent-switch input {
  width: 1rem;
  height: 1rem;
}

.consent-cookie-list {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.consent-cookie-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: #1a1a1a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent-cookie-item span,
.consent-cookie-note {
  color: #4a4a4a;
}

.consent-cookie-note {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.consent-detail-actions {
  margin-top: 1rem;
}

.consent-manage {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 2900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
  font-size: 0.9rem;
  line-height: 1;
}

.consent-manage:hover {
  color: #1a1a1a;
  background: #ffffff;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: -0.25rem;
}

.form-consent input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.form-consent label {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-sans);
}

.form-consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-height: 420px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.03);
  justify-content: center;
}

.consent-embed-placeholder h3 {
  margin: 0;
  font-size: 1.25rem;
}

.consent-embed-placeholder p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.7;
}

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

  .consent-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .consent-category-head {
    flex-direction: column;
  }

  .consent-switch {
    white-space: normal;
  }

  .consent-embed-placeholder {
    min-height: 320px;
    padding: 1.5rem;
  }
}
