/* PPA social choices — scoped to the existing login modal only. */
#modalRoot .modal.small:has(#loginForm) { width:min(480px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); display:flex; flex-direction:column; border-radius:22px; overflow:hidden; }
#modalRoot .modal.small:has(#loginForm) > .modal-body { overflow-y:auto; min-height:0; }
#modalRoot .modal.small:has(#loginForm) .modal-head h2 { font-size:clamp(18px,3.5vw,22px); line-height:1.25; }
.ppa-social-choices {display:grid; gap:10px;}
.ppa-auth-subtitle {margin:0 0 9px; text-align:center; font-size:14px; color:#6b625e;}
.ppa-social-button {width:100%; display:flex;align-items:center;justify-content:center;position:relative;min-height:49px;padding:12px 18px;background:#fff;border:1px solid #d9d6d3;border-radius:12px;font-size:14px;font-weight:650;color:#2a2624;cursor:pointer; transition:background .16s,border-color .16s;}
.ppa-social-button:hover {background:#faf8f6;border-color:#8d8277;}
.ppa-social-button:focus-visible {outline:3px solid #f39b63;outline-offset:2px;}
.ppa-social-button:disabled {opacity:.6;cursor:wait;}
.ppa-social-mark {height:21px;width:21px;position:absolute;left:16px;top:50%;transform:translateY(-50%);}
.ppa-social-legal-note {text-align:center;font-size:12px;color:#6a6662;margin:8px 0 0;line-height:1.4;}
#ppaSocialRules {font-size:13px;justify-self:center;}
.ppa-social-choices .legal-accept-status {text-align:center;font-size:12px;}
.ppa-social-divider {display:flex;align-items:center;gap:14px;color:#91877e;font-size:12px;}
.ppa-social-divider:before,.ppa-social-divider:after {content:"";flex:1;height:1px;background:#e7e0d9;}
.ppa-email-form[hidden] {display:none !important;}
.ppa-email-form.ppa-email-open {margin-top:8px;}
@media (max-width:520px){.ppa-social-button{font-size:13px;min-height:48px}.ppa-social-mark{left:12px}.ppa-social-choices{gap:9px}}

/* Account linking appears only inside the existing PPA account profile. */
.ppa-google-link-box{margin:16px 0;padding:16px;border:1px solid #e6ddd6;border-radius:14px;display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fffaf5}
.ppa-google-link-box .help{margin:5px 0;color:#6a625b;font-size:13px}
.ppa-google-link-box button[hidden]{display:none!important}

/* PPA COMPACT SOCIAL LOGIN: visual-only layout; provider handlers and branding unchanged. */
#modalRoot .modal.small:has(#loginForm) .ppa-social-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#modalRoot .modal.small:has(#loginForm) .ppa-auth-subtitle,
#modalRoot .modal.small:has(#loginForm) #ppaShowEmail,
#modalRoot .modal.small:has(#loginForm) #legalAccepted,
#modalRoot .modal.small:has(#loginForm) .ppa-social-legal-note,
#modalRoot .modal.small:has(#loginForm) #ppaSocialRules,
#modalRoot .modal.small:has(#loginForm) #legalAcceptStatus,
#modalRoot .modal.small:has(#loginForm) .ppa-social-divider {
  grid-column: 1 / -1;
}
#modalRoot .modal.small:has(#loginForm) .ppa-social-button[data-ppa-provider] {
  min-height: 44px;
  padding: 9px 8px 9px 35px;
  font-size: 12px;
  white-space: nowrap;
}
#modalRoot .modal.small:has(#loginForm) .ppa-social-button[data-ppa-provider] .ppa-social-mark {
  left: 10px;
  height: 22px;
  width: 22px;
}
#modalRoot .modal.small:has(#loginForm) .ppa-auth-subtitle { margin-bottom: 0; }
#modalRoot .modal.small:has(#loginForm) .ppa-social-legal-note { margin: 1px 0 0; }
#modalRoot .modal.small:has(#loginForm) #ppaShowEmail { min-height: 42px; }
@media (max-width:360px) {
  #modalRoot .modal.small:has(#loginForm) .ppa-social-button[data-ppa-provider] { font-size: 11px; padding-left: 29px; }
  #modalRoot .modal.small:has(#loginForm) .ppa-social-button[data-ppa-provider] .ppa-social-mark { left: 7px; width: 18px; height:18px; }
}
