.consent-banner,
.consent-settings-panel,
.consent-placeholder {
  color: var(--consent-text, #003c5e);
  font-family: inherit;
}

.consent-banner {
  position: fixed;
  z-index: 1080;
  bottom: 1rem;
  width: min(36rem, calc(100% - 2rem));
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem 1.35rem;
  background: var(--consent-surface, #fff);
  border-radius: var(--consent-radius, 0.75rem);
  box-shadow: 0 16px 40px rgba(0, 28, 48, 0.16);
}

.consent-banner--left {
  left: 1rem;
  right: auto;
}

.consent-banner--center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.consent-banner--right {
  left: auto;
  right: 1rem;
}

.consent-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.consent-text,
.consent-placeholder-text,
.consent-category-description {
  margin: 0;
  color: var(--consent-muted, rgba(0, 60, 94, 0.72));
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.45;
}

.consent-privacy {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--consent-accent, #026da9);
  font-size: 0.95rem;
}

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

.consent-button {
  appearance: none;
  border: 1px solid var(--consent-line, rgba(0, 60, 94, 0.18));
  background: transparent;
  color: var(--consent-text, #003c5e);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.consent-button.is-primary {
  border-color: var(--consent-accent, #026da9);
  background: var(--consent-accent, #026da9);
  color: var(--consent-on-accent, #fff);
}

.consent-button:hover {
  opacity: 0.88;
}

.consent-button:focus-visible,
.consent-privacy:focus-visible,
.consent-settings-link:focus-visible,
.consent-category input:focus-visible {
  outline: 2px solid var(--consent-accent, #026da9);
  outline-offset: 3px;
}

.consent-settings {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: grid;
  place-items: end center;
  padding: 1rem;
}

.consent-settings--left {
  place-items: end start;
}

.consent-settings--center {
  place-items: end center;
}

.consent-settings--right {
  place-items: end end;
}

.consent-settings[hidden],
.consent[hidden] {
  display: none !important;
}

.consent-settings-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 28, 48, 0.46);
  cursor: pointer;
}

.consent-settings-panel {
  position: relative;
  width: min(34rem, 100%);
  max-height: min(40rem, calc(100vh - 2rem));
  overflow: auto;
  padding: 1.25rem 1.35rem;
  background: var(--consent-surface, #fff);
  border-radius: var(--consent-radius, 0.75rem);
}

.consent-categories {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
}

.consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--consent-line, rgba(0, 60, 94, 0.14));
}

.consent-category-name {
  display: block;
  font-weight: 700;
}

.consent-category-description {
  display: block;
  margin-top: 0.2rem;
}

.consent-category input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--consent-accent, #026da9);
}

[data-consent-gate] {
  position: relative;
}

[data-consent-gate].is-consent-blocked {
  overflow: hidden;
}

.consent-placeholder {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--consent-placeholder, #e8e7e3);
}

.consent-placeholder-title {
  margin: 0;
  max-width: 28rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.consent-placeholder-text {
  max-width: 32rem;
}

.consent-embed,
.consent-embed iframe,
.consent-embed video {
  width: 100%;
  height: 100%;
  border: 0;
}

.consent-settings-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner,
  .consent-settings-panel,
  .consent-placeholder {
    scroll-behavior: auto;
  }
}
