#bc-gsi-portal,
#bc-gsi-portal * {
    font-family: var(--bcntf-font-family, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
    font-size: var(--bcntf-font-size, 14px);
    line-height: var(--bcntf-line-height, 1.45);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bc-gsi-banner {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 2147483647 !important;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 280px;
    max-width: 420px;
    background: #111;
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: auto;
    display: none;
}

.bc-gsi-banner.bc-show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.bc-gsi-banner__icon {
    flex: 0 0 auto;
    color: #9ca3af;
    line-height: 0;
}

.bc-gsi-banner__body {
    flex: 1 1 auto;
}

.bc-gsi-banner__title {
    font-weight: 700;
    margin: 0 0 4px;
    font-size: 14px;
}

.bc-gsi-banner__msg {
    margin: 0;
    font-size: 13px;
    color: #e5e7eb;
    white-space: pre-line;
}

.bc-gsi-banner__close {
    background: transparent;
    border: 0;
    color: #cbd5e1;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.bc-gsi-banner__close:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.bc-gsi-progress {
    position: relative;
    height: 3px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    margin-top: 8px;
}

.bc-gsi-progress > div {
    width: 100%;
    height: 100%;
    background: #22c55e;
}

.bc-gsi-fade-out {
    opacity: 0 !important;
    transform: translateY(-8px) !important;
}

.bc-gsi-banner__cta {
    display: none;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 0;
    background: #f9fafb;
    color: #111827;
    font-size: 12px;
    cursor: pointer;
}

.bc-gsi-banner__cta:hover {
    background: #e5e7eb;
}

.bc-gsi-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
}

.bc-gsi-modal {
    background: #fff;
    color: #111;
    border-radius: 12px;
    max-width: 420px;
    width: 92vw;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.bc-gsi-modal h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.bc-gsi-modal p {
    margin: 0 0 12px;
    color: #374151;
    font-size: 14px;
}

.bc-gsi-field {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.bc-gsi-field input {
    flex: 1 1 auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
}

.bc-gsi-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

.bc-gsi-btn-primary {
    background: #111;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
}

.bc-gsi-btn-secondary {
    background: #f3f4f6;
    color: #111;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
}

.bc-gsi-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.bc-gsi-sugs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.bc-gsi-sugs button {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px 8px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}

.bc-gsi-error {
    color: #b91c1c;
    font-size: 13px;
    margin-top: 6px;
}

.bc-gsi-btn-wrap {
    /* display: inline-block; */
    flex-grow: 1;
}

/* Custom Google-style button (no iframe, just CSS) */
.bc-gsi-btn-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.bc-gsi-btn-inner:hover {
    box-shadow: -7px 0px 7px 0px rgb(145 145 145 / 45%);
    text-decoration: none;
}

.bc-gsi-btn-inner:active {
    box-shadow: -7px 0px 7px 0px rgb(145 145 145 / 45%);
    text-decoration: none;
}

.bc-gsi-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bc-gsi-btn-label {
    white-space: nowrap;
}

/* Google One Tap / account chooser anchor */
#bc-gsi-prompt-parent {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;   /* horizontally center the prompt */
  z-index: 2147483646;       /* just under our banner / portal */
  pointer-events: none;      /* let the Google iframe decide its clickable area */
}

/* Ensure the actual Google iframe inside remains clickable */
#bc-gsi-prompt-parent iframe,
#bc-gsi-prompt-parent > div {
  pointer-events: auto;
}

