/* Styles intentionally scoped to .ppcc, no global theme resets. */
.ppcc { --ppcc-accent: #7942bd; color: #24202b; font-family: inherit; font-size: 15px; line-height: 1.5; }
.ppcc *, .ppcc *::before, .ppcc *::after { box-sizing: border-box; }
.ppcc [hidden] { display: none !important; }
.ppcc button, .ppcc input { font: inherit; }
.ppcc a { color: var(--ppcc-accent); text-decoration: underline; text-underline-offset: 2px; }
.ppcc button:focus-visible, .ppcc a:focus-visible, .ppcc input:focus-visible { outline: 3px solid var(--ppcc-accent); outline-offset: 3px; }
/* 1.0.2: small lower-left desktop panel; compact bottom mobile panel. */
.ppcc .ppcc-banner {
  position: fixed; z-index: 2147483000;
  left: 16px; right: auto; bottom: 16px; top: auto;
  transform: none; width: min(355px, calc(100vw - 32px));
  max-width: 355px; max-height: min(40dvh, 260px); overflow-y: auto;
  display: flex; flex-direction: column; align-items: stretch; gap: 7px;
  padding: 11px 12px; margin: 0;
  border: 1px solid #ece6f1; border-radius: 10px;
  background: #fff; box-shadow: 0 5px 20px rgba(23, 14, 35, .13);
}
.ppcc .ppcc-banner__copy { flex: initial; min-width: 0; width: 100%; }
.ppcc .ppcc-banner__title { margin: 0 0 3px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; color: #24202b; }
.ppcc .ppcc-banner__desc { margin: 0; color: #4d4654; font-size: 14px; line-height: 1.35; }
.ppcc .ppcc-banner__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: 5px; flex: initial; width: 100%; max-width: none; margin: 0;
}
.ppcc .ppcc-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 0; min-height: 26px; height: auto;
  padding: 5px 8px; margin: 0;
  border: 1px solid transparent; border-radius: 5px;
  cursor: pointer; font-family: inherit; font-size: 14px;
  font-weight: 600; line-height: 1.25; text-align: center;
  letter-spacing: normal; text-transform: none;
}
.ppcc .ppcc-btn--primary { background: var(--ppcc-accent); border-color: var(--ppcc-accent); color: #fff; }
.ppcc .ppcc-btn--primary:hover { filter: brightness(.92); }
.ppcc .ppcc-btn--outline { background: #fff; border-color: #cac1d4; color: #28212e; }
.ppcc .ppcc-btn--outline:hover { background: #f6f1fa; }
.ppcc .ppcc-btn--link { background: transparent; padding-inline: 3px; color: var(--ppcc-accent); }
.ppcc .ppcc-btn--link:hover { text-decoration: underline; }
/* Footer control is intentionally inline and belongs to the site's footer layout. */
.ppcc-footer-settings { display: inline-flex; vertical-align: baseline; align-items: center; appearance: none; border: 0; background: none; box-shadow: none; padding: 0; margin: 0; color: inherit; font: inherit; font-size: inherit; line-height: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ppcc-footer-settings:hover { color: #7942bd; }
.ppcc-footer-settings:focus-visible { outline: 2px solid #7942bd; outline-offset: 3px; }
.ppcc-overlay { position: fixed; z-index: 2147483001; inset: 0; background: rgba(21, 14, 30, .62); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.ppcc-modal-open { overflow: hidden !important; }
.ppcc-modal { width: min(570px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; padding: 26px; border-radius: 18px; box-shadow: 0 20px 70px rgba(17, 11, 25, .25); }
.ppcc-modal__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.ppcc-modal__heading h2 { font: inherit; color: #24202b; font-size: 21px; font-weight: 750; line-height: 1.25; margin: 0 0 12px; }
.ppcc-modal p { font-size: 14px; margin: 0 0 17px; color: #4d4654; }
.ppcc-close { background: transparent; border: 0; color: #51465d; cursor: pointer; padding: 0 6px; font-size: 30px; line-height: 1; }
.ppcc-category { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid #ede8f0; }
.ppcc-category strong { display: block; color: #28212e; font-size: 15px; font-weight: 700; }
.ppcc-category span span { display: block; color: #5a5062; font-size: 13px; margin-top: 3px; }
.ppcc-category > div > span { display: block; color: #5a5062; font-size: 13px; margin-top: 3px; }
.ppcc-required { font-size: 12px; color: #61566a; white-space: nowrap; }
.ppcc-category--switch { cursor: pointer; }
.ppcc-category--switch > span { flex: 1; }
.ppcc-category--switch input { accent-color: var(--ppcc-accent); width: 23px; height: 23px; flex: 0 0 auto; cursor: pointer; }
.ppcc-modal__legal { border-top: 1px solid #ede8f0; padding-top: 16px; }
.ppcc-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@media (max-width: 600px) {
  .ppcc .ppcc-banner {
    left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom));
    width: auto; max-width: none; max-height: min(34dvh, 190px);
    padding: 9px 10px; border-radius: 9px; gap: 6px;
  }
  .ppcc .ppcc-banner__title { font-size: 16px; }
  .ppcc .ppcc-banner__desc { font-size: 14px; line-height: 1.35; }
  .ppcc .ppcc-banner__actions { flex-wrap: wrap; gap: 5px; }
  .ppcc .ppcc-banner .ppcc-btn { min-height: 26px; padding: 5px 7px; font-size: 14px; }
  .ppcc .ppcc-banner .ppcc-btn--link { padding-inline: 2px; }
  .ppcc .ppcc-modal { padding: 19px; }
  .ppcc .ppcc-modal__actions .ppcc-btn { flex: 1; min-height: 36px; font-size: 14px; }
  .ppcc .ppcc-required { white-space: normal; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { .ppcc-btn { transition: none; } }
