.pv-consent-banner,
.pv-consent-dialog {
  --consent-bg: #12110f;
  --consent-copy: #f5f1e9;
  --consent-muted: #b7afa2;
  --consent-line: rgba(207, 174, 116, .35);
  --consent-gold: #d0ad71;
  color: var(--consent-copy);
  font-family: var(--pv-font-ui, "Manrope", Arial, sans-serif);
}

.pv-consent-banner {
  position: fixed;
  right: clamp(10px, 2vw, 28px);
  bottom: max(clamp(10px, 2vw, 28px), env(safe-area-inset-bottom, 0px));
  left: clamp(10px, 2vw, 28px);
  z-index: 180;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
  padding: 14px 16px 14px 22px;
  border: 1px solid var(--consent-line);
  border-radius: 14px;
  background: #12110f;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
  animation: pv-consent-in .32s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes pv-consent-in {
  from { opacity: 0; transform: translateY(14px); }
}

.pv-consent-banner__copy {
  max-width: 760px;
  margin: 0;
  color: var(--consent-muted);
  font-size: 14px;
  line-height: 1.55;
}

.pv-consent-banner__copy strong {
  color: var(--consent-copy);
  font-weight: 700;
}

.pv-consent-banner__links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: 4px;
  vertical-align: bottom;
  white-space: nowrap;
}

.pv-consent-banner__links a,
.pv-consent-banner .pv-consent-settings {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--consent-copy);
  font: 600 13px/1.55 var(--pv-font-ui, "Manrope", Arial, sans-serif);
  text-decoration: underline;
  text-decoration-color: var(--consent-gold);
  text-underline-offset: 4px;
  cursor: pointer;
}

.pv-consent-banner__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pv-consent-banner__actions button,
.pv-consent-primary,
.pv-consent-close,
.pv-consent-footer {
  min-height: 44px;
  border: 1px solid var(--consent-gold);
  border-radius: 999px;
  padding: 10px 17px;
  background: transparent;
  color: var(--consent-copy);
  font: 700 14px/1.15 var(--pv-font-ui, "Manrope", Arial, sans-serif);
  cursor: pointer;
}

.pv-consent-banner__actions button {
  min-width: 118px;
}

.pv-consent-banner__actions button:hover {
  background: rgba(208, 173, 113, .14);
}

.pv-consent-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--consent-line);
  border-radius: 16px;
  background: var(--consent-bg);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
}

.pv-consent-dialog::backdrop {
  background: rgba(0, 0, 0, .67);
  backdrop-filter: blur(4px);
}

.pv-consent-dialog__panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.pv-consent-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pv-consent-dialog h2 {
  margin: 0;
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-size: 30px;
  font-weight: 400;
}

.pv-consent-close {
  width: 44px;
  padding: 0;
  border-color: rgba(255, 255, 255, .2);
  font-size: 24px;
}

.pv-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.pv-consent-option span {
  display: grid;
  gap: 4px;
}

.pv-consent-option strong { font-size: 14px; }

.pv-consent-option small {
  color: var(--consent-muted);
  font-size: 14px;
  line-height: 1.5;
}

.pv-consent-option input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--consent-gold);
}

.pv-consent-primary {
  justify-self: start;
  background: var(--consent-gold);
  color: #14110d;
}

.pv-consent-footer {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pv-consent-banner button:focus-visible,
.pv-consent-banner a:focus-visible,
.pv-consent-dialog button:focus-visible,
.pv-consent-dialog input:focus-visible,
.pv-consent-footer:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .pv-consent-banner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 14px 12px;
  }

  .pv-consent-banner__copy,
  .pv-consent-banner__links a,
  .pv-consent-banner .pv-consent-settings { font-size: 14px; }
  .pv-consent-banner__links { display: flex; margin: 6px 0 0; }

  .pv-consent-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pv-consent-banner__actions button { width: 100%; min-width: 0; }
  .pv-consent-dialog__panel { padding: 20px; }
  .pv-consent-dialog h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .pv-consent-banner { animation: none; }
  .pv-consent-banner,
  .pv-consent-dialog { scroll-behavior: auto; }
}

@media print {
  .pv-consent-banner { display: none !important; }
}
