/* The Browsera frame surrounds Google's own freely clickable button. */
:is(
  .br-auth-options:is([data-auth-context="login"],[data-auth-context="register"]):has(>.br-auth-social),
  .br-auth-dialog .br-auth-body:has(>.br-auth-social+button+button+button)
) {
  --auth-choice-width: min(100%, 320px);
  --auth-choice-height: 48px;
}

.br-auth-options:is([data-auth-context="login"],[data-auth-context="register"]):has(>.br-auth-social) > .br-auth-choice-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  width:var(--auth-choice-width);
}

.br-auth-options:is([data-auth-context="login"],[data-auth-context="register"]):has(>.br-auth-social) > .br-auth-choice-actions > .br-auth-button,
.br-auth-dialog .br-auth-body:has(>.br-auth-social+button+button+button) > .br-auth-button {
  min-height:var(--auth-choice-height);
  padding-block:8px;
}

.br-auth-dialog .br-auth-body:has(>.br-auth-social+button+button+button) > .br-auth-button {
  width:var(--auth-choice-width);
}

:is(
  .br-auth-options:is([data-auth-context="login"],[data-auth-context="register"]),
  .br-auth-dialog .br-auth-body:has(>.br-auth-social+button+button+button)
) > .br-auth-social {
  --auth-google-fluid: 1;
  width:var(--auth-choice-width);
  min-height:var(--auth-choice-height);
  gap:0;
  align-content:center;
  padding:2px;
  border:2px solid var(--auth-ink);
  border-radius:11px;
  background:var(--auth-panel);
  box-shadow:3px 3px 0 var(--auth-ink);
}

.br-auth-dialog .br-auth-body:has(>.br-auth-social+button+button+button) > .br-auth-social {
  margin:0;
}

:is(
  .br-auth-options:is([data-auth-context="login"],[data-auth-context="register"]),
  .br-auth-dialog .br-auth-body:has(>.br-auth-social+button+button+button)
) > .br-auth-social:focus-within {
  outline:3px solid var(--auth-accent);
  outline-offset:3px;
}
