/* OAUTH_GRANT only. Scope from the owned consent node; native pageId values are not an API. */
body:has(.fb-consent){--fb-card:520px;--fb-consent-ink:#202326;--fb-consent-muted:#50565c}
body:has(.fb-consent) .pf-v5-c-login{padding:24px 16px;background:#f2f3f4}
body:has(.fb-consent) .pf-v5-c-login__container{width:var(--fb-card)}
body:has(.fb-consent) .pf-v5-c-login__main{padding:94px 32px 32px;background:#fff;color:var(--fb-consent-ink);border-radius:16px;filter:none}
body:has(.fb-consent) .pf-v5-c-login__main::before{top:28px;left:32px;width:94px;height:38px;background-size:contain}
body:has(.fb-consent) .pf-v5-c-login__main::after{display:none}
body:has(.fb-consent) .pf-v5-c-login__main-header{padding:0;margin:0 0 24px;display:flex;flex-direction:column;gap:16px}
body:has(.fb-consent) #kc-page-title{font-size:24px;line-height:1.4;font-weight:600;color:var(--fb-consent-ink);text-shadow:none;text-align:start;overflow-wrap:anywhere}
body:has(.fb-consent) .fb-consent-client-logo{display:block;max-width:160px;max-height:40px;margin-bottom:12px;object-fit:contain}
body:has(.fb-consent) .pf-v5-c-login__main-header-utilities{position:static;align-self:flex-start;margin:0;max-width:100%}
body:has(.fb-consent) .pf-v5-c-form-control{background:#fff;border:1px solid #737980;border-radius:6px;--pf-v5-c-form-control--BackgroundColor:#fff;--pf-v5-c-form-control--Color:#202326}
body:has(.fb-consent) .pf-v5-c-form-control::before,body:has(.fb-consent) .pf-v5-c-form-control::after{border:0}
body:has(.fb-consent) #login-select-toggle{min-width:128px;min-height:44px;padding:0 36px 0 12px;border:0;background:transparent;appearance:none;color:var(--fb-consent-ink);font-size:14px}
body:has(.fb-consent) .pf-v5-c-login__main-body{padding:0;margin:0;background:#fff;color:var(--fb-consent-ink);font-size:16px;line-height:1.6}
body:has(.fb-consent) #kc-oauth{background:#fff;color:var(--fb-consent-ink)}
body:has(.fb-consent) .pf-v5-c-login__main-body p{color:var(--fb-consent-muted);font-size:15px;line-height:1.6}
body:has(.fb-consent) .fb-consent ul{margin:12px 0 24px;padding-inline-start:22px;list-style:disc}
body:has(.fb-consent) .fb-consent li{padding-inline-start:2px;line-height:1.65;overflow-wrap:anywhere}
body:has(.fb-consent) .fb-consent li+li{margin-top:8px}
body:has(.fb-consent) .fb-consent-policies a{color:#41474d;text-decoration:underline;text-underline-offset:3px}
body:has(.fb-consent) .fb-consent form{margin-top:24px}
body:has(.fb-consent) .fb-consent .pf-v5-c-form__actions{display:flex;gap:12px;flex-wrap:wrap;padding:0;margin:0;width:100%}
body:has(.fb-consent) .fb-consent .pf-v5-c-button{flex:1 1 160px;min-height:48px;margin:0;padding:12px 16px;font-family:inherit;font-size:16px;font-weight:600;line-height:1.4;letter-spacing:0;border-radius:6px;box-shadow:none;cursor:pointer;white-space:normal}
body:has(.fb-consent) #kc-login{width:auto;background:#fccf00;color:#202326!important}
body:has(.fb-consent) #kc-cancel{background:#fff;border:1px solid #737980;color:#202326}
body:has(.fb-consent) .fb-consent .pf-v5-c-button::after{border:0}
body:has(.fb-consent) #kc-login:hover{background:#edc200}
body:has(.fb-consent) #kc-cancel:hover{background:#f2f3f4}
body:has(.fb-consent) :is(button,select,a):focus-visible{outline:3px solid #202326;outline-offset:3px}
body:has(.fb-consent) .pf-v5-c-login__main-footer{padding:0;margin:0}
body:has(.fb-consent) ::selection{background:#fccf00;color:#202326}
@media(max-width:540px){
  body:has(.fb-consent) .pf-v5-c-login{padding:16px}
  body:has(.fb-consent) .pf-v5-c-login__main{padding:84px 24px 24px}
  body:has(.fb-consent) .pf-v5-c-login__main::before{top:24px;left:24px;width:84px;height:34px}
  body:has(.fb-consent) #kc-page-title{font-size:22px}
  body:has(.fb-consent) .fb-consent .pf-v5-c-form__actions{flex-direction:column;gap:12px}
  body:has(.fb-consent) .fb-consent .pf-v5-c-button{flex:auto;width:100%}
}

/* Approved mall variant; all other clients retain the shared consent presentation above. */
body:has(.fb-consent--mall){--fb-card:420px}
body:has(.fb-consent--mall) .pf-v5-c-login__main-header{align-items:stretch;margin-bottom:20px}
body:has(.fb-consent--mall) #kc-page-title{width:100%;font-size:22px;text-align:left}
body:has(.fb-consent--mall) .pf-v5-c-login__main-header-utilities{display:none}
body:has(.fb-consent--mall) .fb-consent ul{margin:0;padding:0;list-style:none}
body:has(.fb-consent--mall) .fb-consent li{padding:0;font-size:16px}
body:has(.fb-consent--mall) .fb-consent-policies{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
body:has(.fb-consent--mall) .fb-consent .pf-v5-c-form__actions{display:grid;grid-template-columns:1fr 1.25fr;gap:12px}
body:has(.fb-consent--mall) .fb-consent .pf-v5-c-button{width:100%;min-width:0;min-height:48px}
