.consent-banner,
.consent-dialog {
  color: var(--ui-text, #f3ead6);
  font-family: inherit;
}

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

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  width: min(860px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid rgba(212, 177, 114, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(31, 26, 18, 0.98), rgba(17, 15, 11, 0.98)),
    var(--ui-bg-panel, #15120d);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
}

.consent-eyebrow {
  margin: 0 0 8px;
  color: rgba(228, 194, 132, 0.78);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.consent-banner h2,
.consent-dialog h2,
.consent-card h3 {
  margin: 0;
}

.consent-banner p:not(.consent-eyebrow),
.consent-dialog-subtitle,
.consent-card p {
  margin: 8px 0 0;
  color: rgba(243, 234, 214, 0.72);
  line-height: 1.55;
}

.consent-actions,
.consent-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.consent-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.consent-button.primary {
  color: #1d160c;
  background: linear-gradient(180deg, #f1d28b, #c99345);
  border-color: rgba(255, 255, 255, 0.12);
}

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 20px;
}

.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 5, 0.72);
  backdrop-filter: blur(7px);
}

.consent-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(212, 177, 114, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(31, 26, 18, 0.98), rgba(17, 15, 11, 0.98)),
    var(--ui-bg-panel, #15120d);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
}

.consent-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.consent-close {
  min-width: 44px;
  border-radius: 12px;
}

.consent-options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.consent-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.consent-card.toggle {
  cursor: pointer;
}

.consent-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 177, 114, 0.24);
  color: #f1d28b;
  background: rgba(212, 177, 114, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
}

.consent-card input {
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  accent-color: #c99345;
  cursor: pointer;
}

body.consent-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .consent-actions,
  .consent-dialog-actions,
  .consent-button {
    width: 100%;
  }

  .consent-card,
  .consent-dialog-head {
    align-items: stretch;
    flex-direction: column;
  }
}
