:root {
  --p80-consent-navy: #121b49;
  --p80-consent-blue: #1a3972;
  --p80-consent-pink: #df3774;
  --p80-consent-cyan: #57d3df;
  --p80-consent-paper: #f7f8fc;
  --p80-consent-ink: #142039;
}

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

.p80-consent-banner {
  position: fixed;
  z-index: 2147483000;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(87, 211, 223, 0.42);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(18, 27, 73, 0.98), rgba(31, 37, 90, 0.98) 58%, rgba(91, 30, 89, 0.98));
  color: #fff;
  box-shadow: 0 20px 65px rgba(4, 12, 37, 0.38);
  font-family: inherit;
}

.p80-consent-banner__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #df3774, #1a3972 64%);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.p80-consent-banner__copy strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.p80-consent-banner__copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.p80-consent-banner__copy a,
.p80-consent-modal__actions a {
  display: inline-block;
  margin-top: 5px;
  color: #9beff5 !important;
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p80-consent-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 8px;
  min-width: 292px;
}

.p80-consent-button,
.p80-consent-link-button,
.p80-consent-inline-settings,
.p80-consent-settings {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.p80-consent-button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.p80-consent-button--primary {
  background: var(--p80-consent-pink);
  color: #fff;
  box-shadow: 0 7px 18px rgba(223, 55, 116, 0.2);
}

.p80-consent-button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.p80-consent-banner__actions .p80-consent-button--primary,
.p80-consent-banner__actions .p80-consent-button--secondary {
  border: 1px solid #fff;
  background: #fff;
  color: var(--p80-consent-navy);
  box-shadow: none;
}

.p80-consent-link-button {
  grid-column: 1 / -1;
  padding: 3px;
  background: transparent;
  color: #aeeff4;
  font-size: 11px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p80-consent-button:hover,
.p80-consent-button:focus-visible,
.p80-consent-link-button:hover,
.p80-consent-link-button:focus-visible,
.p80-consent-settings:hover,
.p80-consent-settings:focus-visible,
.p80-consent-inline-settings:hover,
.p80-consent-inline-settings:focus-visible {
  filter: brightness(1.1);
  outline: 3px solid rgba(87, 211, 223, 0.42);
  outline-offset: 2px;
}

.p80-consent-settings {
  position: fixed;
  z-index: 2147482500;
  left: 14px;
  bottom: 12px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(18, 27, 73, 0.95);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 7px 22px rgba(4, 12, 37, 0.25);
}

.p80-consent-banner-visible .p80-consent-settings {
  display: none;
}

.p80-consent-modal {
  position: fixed;
  z-index: 2147483500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.p80-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 39, 0.74);
  backdrop-filter: blur(4px);
}

.p80-consent-modal__panel {
  position: relative;
  width: min(100%, 620px);
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(87, 211, 223, 0.32);
  border-radius: 18px;
  background: #fff;
  color: var(--p80-consent-ink);
  box-shadow: 0 30px 90px rgba(4, 12, 37, 0.46);
}

.p80-consent-modal__panel:focus {
  outline: none;
}

.p80-consent-modal__close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf0f8;
  color: var(--p80-consent-navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.p80-consent-modal__kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--p80-consent-pink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
}

.p80-consent-modal h2 {
  margin: 0 46px 8px 0;
  color: var(--p80-consent-navy);
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.05;
}

.p80-consent-modal__panel > p {
  margin: 0 0 20px;
  color: #58647a;
  font-size: 14px;
  line-height: 1.55;
}

.p80-consent-choice {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fff;
}

.p80-consent-choice--fixed {
  background: var(--p80-consent-paper);
}

.p80-consent-choice strong,
.p80-consent-choice span {
  display: block;
}

.p80-consent-choice strong {
  margin-bottom: 3px;
  color: var(--p80-consent-navy);
  font-size: 15px;
}

.p80-consent-choice div > span {
  color: #657087;
  font-size: 12px;
  line-height: 1.45;
}

.p80-consent-always {
  flex: 0 0 auto;
  color: #16764b;
  font-size: 11px;
  font-weight: 850;
}

.p80-consent-switch {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 26px;
}

.p80-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.p80-consent-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #aab3c3;
  transition: background 0.18s ease;
}

.p80-consent-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  content: '';
  transition: transform 0.18s ease;
}

.p80-consent-switch input:checked + span {
  background: var(--p80-consent-pink);
}

.p80-consent-switch input:checked + span::after {
  transform: translateX(22px);
}

.p80-consent-switch input:focus-visible + span {
  outline: 3px solid rgba(87, 211, 223, 0.55);
  outline-offset: 3px;
}

.p80-consent-modal__actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}

.p80-consent-modal__actions a {
  margin: 0;
  color: var(--p80-consent-blue) !important;
}

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

.p80-consent-embed {
  display: grid;
  width: 100%;
  min-height: clamp(220px, 42vw, 506px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(87, 211, 223, 0.35);
  border-radius: 7px;
  background:
    radial-gradient(circle at 78% 24%, rgba(223, 55, 116, 0.28), transparent 28%),
    linear-gradient(135deg, #101943, #1a3972 64%, #322152);
  color: #fff;
}

.p80-consent-embed__inner {
  display: grid;
  width: min(92%, 520px);
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.p80-consent-embed__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 13px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: var(--p80-consent-pink);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.p80-consent-embed p {
  margin: 0 0 16px !important;
  color: #fff !important;
}

.p80-consent-embed p strong,
.p80-consent-embed p span {
  display: block;
}

.p80-consent-embed p strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.p80-consent-embed p span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

.p80-consent-inline-settings {
  padding: 10px 14px;
  border: 1px solid #b7c3d5;
  border-radius: 7px;
  background: #fff;
  color: var(--p80-consent-navy);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .p80-consent-banner {
    grid-template-columns: auto 1fr;
  }

  .p80-consent-banner__actions {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .p80-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 12px;
    padding: 15px;
    border-radius: 13px;
  }

  .p80-consent-banner__mark {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .p80-consent-banner__copy p {
    font-size: 12px;
  }

  .p80-consent-banner__actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .p80-consent-button {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 11px;
  }

  .p80-consent-modal__panel {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .p80-consent-choice {
    align-items: flex-start;
  }

  .p80-consent-modal__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .p80-consent-settings {
    left: 9px;
    bottom: 8px;
  }

  .p80-consent-embed {
    min-height: 245px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p80-consent-switch span,
  .p80-consent-switch span::after {
    transition: none;
  }
}

