.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.harpya-consent-banner,
.harpya-consent-modal {
  --harpya-ink: #0b0f12;
  --harpya-charcoal: #151b1f;
  --harpya-ivory: #f2f0ea;
  --harpya-gold: #c6b88a;
  --harpya-line: rgba(242, 240, 234, .18);
  font-family: Montserrat, Arial, sans-serif;
}

.harpya-consent-banner {
  position: fixed;
  z-index: 9998;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 1060px;
  margin: 0 auto;
  border: 1px solid rgba(198, 184, 138, .55);
  background: rgba(11, 15, 18, .985);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .5);
  color: var(--harpya-ivory);
}

.harpya-consent-banner[hidden],
.harpya-consent-modal[hidden] { display: none !important; }

.harpya-consent-inner {
  display: grid;
  grid-template-columns: 1.25fr auto;
  align-items: center;
  gap: 30px;
  padding: 26px 30px;
}

.harpya-consent-kicker {
  margin: 0 0 8px;
  color: var(--harpya-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.harpya-consent-copy h2,
.harpya-consent-modal h2 {
  margin: 0;
  color: var(--harpya-ivory);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 3vw, 35px);
  line-height: 1.05;
}

.harpya-consent-copy > p:not(.harpya-consent-kicker):not(.harpya-consent-links) {
  max-width: 650px;
  margin: 10px 0 0;
  color: rgba(242, 240, 234, .78);
  font-size: 14px;
  line-height: 1.6;
}

.harpya-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12px;
}

.harpya-consent-links a { color: var(--harpya-gold); text-decoration: underline; text-underline-offset: 3px; }
.harpya-consent-actions,
.harpya-consent-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.harpya-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--harpya-gold);
  background: transparent;
  color: var(--harpya-ivory);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.harpya-button:hover,
.harpya-button:focus-visible { outline: 2px solid var(--harpya-ivory); outline-offset: 2px; }
.harpya-button-primary { background: var(--harpya-gold); color: var(--harpya-ink); }
.harpya-button-secondary { border-color: rgba(242, 240, 234, .52); }

.harpya-consent-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 9, .76);
}

.harpya-consent-modal__panel {
  width: min(100%, 690px);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(198, 184, 138, .6);
  background: var(--harpya-charcoal);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  color: var(--harpya-ivory);
}

.harpya-consent-modal__header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--harpya-line); }
.harpya-consent-close { width: 40px; height: 40px; border: 0; background: transparent; color: var(--harpya-ivory); font-size: 32px; line-height: 1; cursor: pointer; }
.harpya-consent-close:hover, .harpya-consent-close:focus-visible { color: var(--harpya-gold); outline: 2px solid var(--harpya-gold); outline-offset: 2px; }

.harpya-consent-option { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--harpya-line); }
.harpya-consent-option h3 { margin: 0; font-size: 17px; }
.harpya-consent-option p, .harpya-consent-modal__note { margin: 6px 0 0; color: rgba(242, 240, 234, .72); font-size: 14px; line-height: 1.6; }
.harpya-consent-status { color: var(--harpya-gold); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.harpya-consent-modal__note { margin: 22px 0; }

.harpya-switch { position: relative; display: inline-flex; width: 50px; height: 28px; }
.harpya-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.harpya-switch__track { width: 50px; height: 28px; border: 1px solid rgba(242, 240, 234, .5); border-radius: 999px; background: #0d1114; transition: .2s ease; }
.harpya-switch__track::after { content: ""; display: block; width: 20px; height: 20px; margin: 3px; border-radius: 50%; background: var(--harpya-ivory); transition: transform .2s ease; }
.harpya-switch input:checked + .harpya-switch__track { border-color: var(--harpya-gold); background: rgba(198, 184, 138, .42); }
.harpya-switch input:checked + .harpya-switch__track::after { transform: translateX(22px); background: var(--harpya-gold); }
.harpya-switch input:focus-visible + .harpya-switch__track { outline: 2px solid var(--harpya-ivory); outline-offset: 3px; }

@media (max-width: 760px) {
  .harpya-consent-banner { right: 12px; bottom: 12px; left: 12px; }
  .harpya-consent-inner { grid-template-columns: 1fr; gap: 20px; padding: 23px 20px; }
  .harpya-consent-actions { justify-content: flex-start; }
  .harpya-consent-actions .harpya-button { flex: 1 1 145px; }
  .harpya-consent-modal__panel { padding: 26px 21px; }
  .harpya-consent-option { gap: 15px; }
  .harpya-consent-modal__actions { justify-content: flex-start; }
}
