/* Sign in with Google button. Colours follow Google's sign-in branding guidelines: white with a grey
   outline on light backgrounds, near-black with a lighter outline on dark ones. The "G" keeps its
   four colours in both. Same box and type as .btn-apple-sign-in so the two buttons sit level. */
.btn-google-sign-in {
  --google-btn-bg: #fff;
  --google-btn-fg: #1f1f1f;
  --google-btn-border: #747775;
  --google-btn-hover: #f2f2f2;
  background-color: var(--google-btn-bg);
  border: var(--bs-border-width, 1px) solid var(--google-btn-border);
  color: var(--google-btn-fg);
  font-weight: 500;
}

.btn-google-sign-in:hover,
.btn-google-sign-in:active {
  background-color: var(--google-btn-hover);
  border-color: var(--google-btn-border);
  color: var(--google-btn-fg);
}

.btn-google-sign-in:focus-visible {
  background-color: var(--google-btn-hover);
  border-color: var(--google-btn-border);
  color: var(--google-btn-fg);
  outline: 2px solid var(--google-btn-fg);
  outline-offset: 2px;
}

.btn-google-sign-in:disabled,
.btn-google-sign-in.disabled {
  opacity: 0.6;
}

.btn-google-sign-in__content {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-google-sign-in__logo {
  flex: none;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .btn-google-sign-in {
  --google-btn-bg: #131314;
  --google-btn-fg: #e3e3e3;
  --google-btn-border: #8e918f;
  --google-btn-hover: #2a2a2c;
}
