:root {
  --abx-pc-white: #FFFFFF;
  --abx-pc-navy: #0B1F3A;
  --abx-pc-text: #111827;
  --abx-pc-blue: #1464D2;
  --abx-pc-accent: #00AEEF;
  --abx-pc-light: #F5F7FA;
  --abx-pc-border: #D5DCE5;
  --abx-pc-focus: #0B1F3A;
}

.abx-pc-banner[hidden], .abx-pc-dialog[hidden], .abx-pc-gpc-note[hidden] { display: none !important; }
.abx-pc-modal-open { overflow: hidden; }

.abx-pc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: var(--abx-pc-white);
  border-top: 1px solid var(--abx-pc-border);
  box-shadow: 0 -10px 30px rgba(11, 31, 58, .12);
  color: var(--abx-pc-text);
  font-family: inherit;
}

.abx-pc-banner__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.abx-pc-brand {
  color: var(--abx-pc-blue);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.abx-pc-copy h2, .abx-pc-dialog__panel h2 {
  margin: 0 0 8px;
  color: var(--abx-pc-navy);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.abx-pc-copy p, .abx-pc-dialog__panel p {
  margin: 0;
  color: var(--abx-pc-text);
  font-size: 15px;
  line-height: 1.55;
}

.abx-pc-policy {
  display: inline-block;
  margin-top: 8px;
  color: var(--abx-pc-blue);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.abx-pc-actions, .abx-pc-dialog__actions {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.abx-pc-btn {
  appearance: none;
  border-radius: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.abx-pc-btn:hover { transform: translateY(-1px); }
.abx-pc-btn:focus-visible, .abx-pc-close:focus-visible, .abx-pc-switch:focus-visible, .abx-pc-footer-link:focus-visible, .abx-pc-policy:focus-visible {
  outline: 3px solid var(--abx-pc-focus);
  outline-offset: 3px;
}

.abx-pc-btn--accept { background: var(--abx-pc-blue); color: #fff; border-color: var(--abx-pc-blue); }
.abx-pc-btn--reject { background: var(--abx-pc-navy); color: #fff; border-color: var(--abx-pc-navy); }
.abx-pc-btn--manage { background: #fff; color: var(--abx-pc-navy); border-color: var(--abx-pc-border); }

.abx-pc-dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  font-family: inherit;
  color: var(--abx-pc-text);
}
.abx-pc-dialog__backdrop { position: absolute; inset: 0; background: rgba(11, 31, 58, .58); }
.abx-pc-dialog__panel {
  position: relative;
  width: min(680px, calc(100% - 32px));
  max-height: min(88vh, 820px);
  overflow: auto;
  margin: 6vh auto 0;
  background: #fff;
  border: 1px solid var(--abx-pc-border);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(11, 31, 58, .25);
  padding: 28px;
}
.abx-pc-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--abx-pc-border);
  background: #fff;
  color: var(--abx-pc-navy);
  border-radius: 6px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.abx-pc-categories { margin: 22px 0; border-top: 1px solid var(--abx-pc-border); }
.abx-pc-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--abx-pc-border);
}
.abx-pc-category h3 { margin: 0 0 5px; color: var(--abx-pc-navy); font-size: 16px; line-height: 1.3; }
.abx-pc-category p { font-size: 14px; color: #475569; }
.abx-pc-switch {
  min-width: 88px;
  min-height: 40px;
  border: 2px solid var(--abx-pc-border);
  background: #fff;
  color: var(--abx-pc-navy);
  border-radius: 22px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.abx-pc-switch.is-on { border-color: var(--abx-pc-blue); background: var(--abx-pc-blue); color: #fff; }
.abx-pc-switch:disabled { cursor: not-allowed; opacity: .72; }

.abx-pc-dialog__actions { grid-template-columns: 1fr 1fr 1fr; min-width: 0; }
.abx-pc-fineprint { margin-top: 14px !important; font-size: 12px !important; color: #64748b !important; }
.abx-pc-gpc-note {
  margin-top: 10px !important;
  padding: 10px 12px;
  background: var(--abx-pc-light);
  border-left: 4px solid var(--abx-pc-accent);
  font-size: 13px !important;
}

.abx-pc-footer-link {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2147482000;
  background: #fff;
  color: var(--abx-pc-navy);
  border: 1px solid var(--abx-pc-border);
  border-radius: 6px;
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 31, 58, .12);
}
.abx-pc-banner:not([hidden]) ~ .abx-pc-footer-link { bottom: 8px; }

@media (max-width: 760px) {
  .abx-pc-banner__inner {
    width: calc(100% - 28px);
    padding: 16px 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .abx-pc-copy p { font-size: 14px; }
  .abx-pc-actions { grid-template-columns: 1fr 1fr; min-width: 0; }
  .abx-pc-btn--manage { grid-column: 1 / -1; }
  .abx-pc-dialog__panel { width: calc(100% - 20px); margin-top: 3vh; max-height: 94vh; padding: 22px 18px; }
  .abx-pc-category { grid-template-columns: 1fr; gap: 10px; }
  .abx-pc-switch { justify-self: start; }
  .abx-pc-dialog__actions { grid-template-columns: 1fr; }
  .abx-pc-footer-link { right: 8px; bottom: 8px; }
}

@media (max-width: 420px) {
  .abx-pc-actions { grid-template-columns: 1fr; }
  .abx-pc-btn--manage { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .abx-pc-btn { transition: none; }
}
