/* =====================================================================
   v80 Sign in with Google: the button (Google's branding: light and dark), the "or" line,
   the verified-identity card, the result page, the Profile card and the console card.
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap");

/* ---- the button: white with a 1px #747775 border and #1F1F1F text; dark: #131314 / #8E918F / #E3E3E3. Google's own "G" picture on the left. */
a.g-btn, .auth-card a.g-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; margin: 0;
    background: #ffffff; color: #1f1f1f; border: 1px solid #747775; border-radius: 22px;
    font-family: Roboto, Arial, "Helvetica Neue", sans-serif; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .25px;
    text-decoration: none; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
}
a.g-btn:hover { background-image: linear-gradient(rgba(48, 48, 48, .08), rgba(48, 48, 48, .08)); box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15); }
a.g-btn:active { background-image: linear-gradient(rgba(48, 48, 48, .12), rgba(48, 48, 48, .12)); }
a.g-btn:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }
.g-btn-logo { width: 18px; height: 18px; flex: none; display: block; }
.g-btn-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="dark"] a.g-btn, :root[data-theme="dark"] .auth-card a.g-btn { background-color: #131314; color: #e3e3e3; border-color: #8e918f; }
:root[data-theme="dark"] a.g-btn:hover { background-image: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08)); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .30), 0 1px 3px 1px rgba(0, 0, 0, .15); }
:root[data-theme="dark"] a.g-btn:focus-visible { outline-color: #a8c7fa; }
a.g-btn.g-btn-inline { display: inline-flex; width: auto; min-height: 40px; padding: 9px 14px; border-radius: 20px; }
a.g-btn.is-going { pointer-events: none; opacity: .75; }

/* ---- "or" between the Google button and the form */
.g-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.g-or::before, .g-or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--border-2, #d5dbe3); }
.g-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---- the verified Google identity on a form (new store, joining, invitation) */
.g-id { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin: 0 0 18px; border: 1px solid var(--border-2, #d5dbe3); border-radius: 12px; background: var(--surface, #fff); }
.g-id-pic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 17px; }
.g-id-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-id-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.g-id-who > b { font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.g-id-who > span { max-width: 100%; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.g-id-who > .g-id-ok { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--ok-ink); background: var(--ok-bg); border: 1px solid var(--ok-line); }
.g-id-ok .ico { width: 14px; height: 14px; }
.g-id-alt { margin: -8px 0 18px; font-size: 12.5px; color: var(--muted); }
.auth-card .g-id-alt a { font-weight: 600; }

/* ---- google_auth.php: what happened */
.g-result .g-result-icon { color: var(--accent-ink); }
.g-result-error .g-result-icon { background: var(--bad-bg); color: var(--bad-ink); }
.g-result-success .g-result-icon { background: var(--ok-bg); color: var(--ok-ink); }
.g-result .g-result-icon .ico { width: 26px; height: 26px; }
.g-result .sub { overflow-wrap: anywhere; }
.g-result .sub code { font-size: 12.5px; }
.g-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -12px 0 20px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.g-who strong { color: var(--ink); }
.auth-card a.g-act { margin-top: 10px; }
.auth-card a.g-act:first-of-type, .auth-card a.g-btn + a.g-act { margin-top: 10px; }
.auth-card a.btn-secondary.btn-link { color: var(--ink) !important; border: 1px solid var(--border-2, #d5dbe3); }
.auth-card a.btn-secondary.btn-link:hover { background: var(--btn2-h); }

/* ---- messages the pages show after the round trip */
.g-notice { margin: 0 0 18px; }
.msg.info.g-notice { border-color: var(--accent-line, #b7e1d8); }

/* ---- Profile > Google sign-in */
.g-pcard .g-prow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.g-pstate { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; }
.g-pstate .g-plogo { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border-2, #d5dbe3); }
.g-pstate .g-plogo img { width: 20px; height: 20px; display: block; }
.g-pstate .g-plogo .ico { display: none; width: 20px; height: 20px; color: var(--muted); }
.g-pstate .g-plogo .ico:only-child { display: block; }   /* Google's picture could not load: a plain link icon */
.g-pstate .g-plogo:has(> .ico:only-child) { background: var(--surface-2, #f3f5f8); }
.g-pstate b { display: block; color: var(--ink); overflow-wrap: anywhere; }
.g-pstate span { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.g-pacts { display: flex; gap: 10px; flex-wrap: wrap; }
.g-pacts form { margin: 0; }
.g-pnote { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.g-pfresh { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* ---- Console > Integrations > Sign in with Google */
.g-cstate { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.g-uri { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; margin: 6px 0 4px; }
.g-uri code { flex: 1 1 280px; min-width: 0; display: block; padding: 10px 12px; border: 1px solid var(--border-2, #d5dbe3); border-radius: 10px; background: var(--surface-2, #f3f5f8); color: var(--ink); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; user-select: all; }
.g-uri button { flex: none; }
.g-csteps li { overflow-wrap: anywhere; }
.g-csteps code { font-size: 12.5px; }
