:root {
  --pbc-ink: #0b0b0c;
  --pbc-panel: #171719;
  --pbc-paper: #f5f2ec;
  --pbc-muted: #c9c4bc;
  --pbc-orange: #f08a1d;
  --pbc-orange-hover: #ff9c33;
  --pbc-line: rgba(245, 242, 236, 0.18);
  --pbc-shadow: 0 24px 72px rgba(0, 0, 0, 0.36);
  --pbc-radius: 24px;
}

.pbc-banner,
.pbc-modal,
.pbc-footer-settings,
.pbc-policy-table-wrap {
  box-sizing: border-box;
  font-family: Figtree, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pbc-banner *,
.pbc-modal *,
.pbc-footer-settings *,
.pbc-policy-table-wrap * {
  box-sizing: border-box;
}

.pbc-banner[hidden],
.pbc-modal[hidden],
.pbc-footer-settings[hidden] {
  display: none !important;
}

.pbc-modal-open {
  overflow: hidden;
}

.pbc-banner {
  position: fixed;
  z-index: 999998;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  padding: 28px;
  color: var(--pbc-paper);
  background: var(--pbc-panel);
  border: 1px solid var(--pbc-line);
  border-radius: var(--pbc-radius);
  box-shadow: var(--pbc-shadow);
}

.pbc-banner__copy {
  max-width: 720px;
}

.pbc-eyebrow {
  margin: 0 0 8px;
  color: var(--pbc-orange);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pbc-banner__title,
.pbc-modal__title {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.pbc-banner__title {
  color: var(--pbc-paper);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.pbc-banner__description {
  max-width: 680px;
  margin: 12px 0 8px;
  color: var(--pbc-muted);
  font-size: 15px;
  line-height: 1.55;
}

.pbc-text-link,
.pbc-inline-settings {
  color: var(--pbc-paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-underline-offset: 4px;
}

.pbc-text-link:hover {
  color: var(--pbc-orange-hover);
}

.pbc-text-link--dark {
  color: var(--pbc-ink);
}

.pbc-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  min-width: 320px;
}

.pbc-banner__actions .pbc-button--secondary {
  grid-column: 1 / -1;
}

.pbc-button,
.pbc-icon-button,
.pbc-footer-settings,
.pbc-inline-settings {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.pbc-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pbc-button:hover {
  transform: translateY(-1px);
}

.pbc-button--primary {
  color: var(--pbc-ink);
  background: var(--pbc-orange);
}

.pbc-button--primary:hover {
  background: var(--pbc-orange-hover);
}

.pbc-button--secondary {
  color: var(--pbc-paper);
  background: transparent;
  border-color: rgba(245, 242, 236, 0.48);
}

.pbc-button--secondary:hover {
  color: var(--pbc-ink);
  background: var(--pbc-paper);
  border-color: var(--pbc-paper);
}

.pbc-button--dark {
  color: var(--pbc-paper);
  background: var(--pbc-ink);
}

.pbc-button--dark:hover {
  background: #29292c;
}

.pbc-button:focus-visible,
.pbc-icon-button:focus-visible,
.pbc-footer-settings:focus-visible,
.pbc-inline-settings:focus-visible,
.pbc-switch input:focus-visible + .pbc-switch__track,
.pbc-text-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.pbc-footer-settings {
  display: inline;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.pbc-footer-settings:hover {
  color: var(--pbc-orange-hover);
}

.pbc-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pbc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.pbc-modal__dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  color: var(--pbc-ink);
  background: var(--pbc-paper);
  border-radius: 28px;
  box-shadow: var(--pbc-shadow);
}

.pbc-modal__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.pbc-modal__title {
  color: var(--pbc-ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.pbc-modal__intro {
  margin: 14px 0 24px;
  color: #4f4d49;
  font-size: 15px;
  line-height: 1.55;
}

.pbc-icon-button {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--pbc-paper);
  background: var(--pbc-ink);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.pbc-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(11, 11, 12, 0.14);
}

.pbc-category__copy h3 {
  margin: 0 0 5px;
  color: var(--pbc-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.pbc-category__copy p {
  margin: 0;
  color: #5e5a54;
  font-size: 14px;
  line-height: 1.5;
}

.pbc-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

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

.pbc-switch__track {
  display: block;
  width: 54px;
  height: 30px;
  padding: 3px;
  background: #77736d;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.pbc-switch__track span {
  display: block;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease;
}

.pbc-switch input:checked + .pbc-switch__track {
  background: var(--pbc-orange);
}

.pbc-switch input:checked + .pbc-switch__track span {
  transform: translateX(24px);
}

.pbc-switch--locked {
  cursor: not-allowed;
  opacity: 0.72;
}

.pbc-modal__footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(11, 11, 12, 0.14);
}

.pbc-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pbc-policy-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.pbc-policy-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: inherit;
  font-size: 15px;
}

.pbc-policy-table caption {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.pbc-policy-table th,
.pbc-policy-table td {
  padding: 14px;
  border: 1px solid currentColor;
  text-align: left;
  vertical-align: top;
}

.pbc-inline-settings {
  padding: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .pbc-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 20px;
    width: calc(100% - 24px);
    padding: 22px;
    border-radius: 20px;
  }

  .pbc-banner__actions {
    min-width: 0;
  }

  .pbc-modal {
    align-items: end;
    padding: 10px;
  }

  .pbc-modal__dialog {
    max-height: calc(100vh - 20px);
    padding: 24px 20px;
    border-radius: 22px;
  }

  .pbc-modal__footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .pbc-modal__footer .pbc-button {
    width: 100%;
  }

}

@media (max-width: 420px) {
  .pbc-banner__actions {
    grid-template-columns: 1fr;
  }

  .pbc-banner__actions .pbc-button--secondary {
    grid-column: auto;
  }

  .pbc-category {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pbc-button,
  .pbc-footer-settings,
  .pbc-switch__track,
  .pbc-switch__track span {
    transition: none;
  }
}

@media print {
  .pbc-banner,
  .pbc-modal,
  .pbc-footer-settings,
  .pbc-inline-settings {
    display: none !important;
  }
}
