/* Google-required brand colours are scoped to the new shared button. */
.rx-google-button {
    --rx-google-bg: #131314;
    --rx-google-text: #e3e3e3;
    --rx-google-border: #8e918f;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 44px; box-sizing: border-box;
    margin: 16px 0; padding: 12px;
    border: 1px solid var(--rx-google-border); border-radius: 12px;
    background: var(--rx-google-bg); color: var(--rx-google-text);
    font: 500 14px/20px 'Google Sans', Arial, sans-serif; cursor: pointer;
}
:root[data-theme="light"] .rx-google-button {
    --rx-google-bg: #ffffff;
    --rx-google-text: #1f1f1f;
    --rx-google-border: #747775;
}
.rx-google-button img { width: 20px; height: 20px; object-fit: contain; flex: 0 0 20px; }
.rx-google-button:hover:not(:disabled) { box-shadow: 0 0 0 2px var(--border-color); }
.rx-google-button:focus-visible, #google-dialog :where(input,select,button):focus-visible {
    outline: 2px solid var(--primary-accent); outline-offset: 4px;
}
.rx-google-button:disabled, #google-dialog button:disabled { opacity: .55; cursor: not-allowed; }
#google-dialog {
    box-sizing: border-box; width: min(520px, calc(100vw - 32px)); max-width: none;
    max-height: calc(100dvh - 32px); overflow: auto;
    position: fixed; inset: 50dvh auto auto 50vw; margin: 0;
    transform: translate(-50%, -50%); padding: clamp(20px,5vw,40px);
    background: var(--bg-color); color: var(--text-color);
    font-family: inherit; text-align: left;
}
#google-dialog::backdrop { backdrop-filter: blur(6px); }
#google-dialog h2 { margin: 0 0 20px; font-size: 1.5rem; text-align: center; }
#google-dialog p { line-height: 1.5; overflow-wrap: anywhere; }
#google-dialog :where(input,select,button) { box-sizing: border-box; font-family: inherit; }
#google-dialog [hidden] { display: none !important; }
#google-dialog .btn-control { margin-top: 16px; }
#google-dialog #google-status { padding: 12px; border: 1px solid var(--border-color); border-radius: 10px; }
#google-dialog #google-status:empty { display: none; }
#google-dialog #google-email { color: var(--secondary-text); }

#google-availability { color: var(--secondary-text); font-size: .9rem; line-height: 1.5; }
