.google-auth-area {
    width: 100%;
    min-width: 0;
}

.google-auth-widget {
    position: relative;
    width: 100%;
    min-width: 0;
    border-radius: 4px;
    transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.google-auth-button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
}

.google-auth-placeholder {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #fff;
    color: #3c4043;
    font: 500 14px/1 Arial, sans-serif;
    opacity: 1;
    cursor: wait;
}

.google-auth-placeholder .fa-google {
    color: #4285f4;
    font-size: 16px;
}

.google-auth-placeholder.is-unavailable {
    background: #f7f8fa;
    color: #6b7280;
    cursor: not-allowed;
}

.google-auth-button iframe {
    display: block;
    max-width: 100%;
    border: 0;
}

.google-auth-widget:focus-within {
    outline: 2px solid rgba(96, 165, 250, 0.3);
    outline-offset: 3px;
}

.google-auth-status {
    display: -webkit-box;
    height: 2.45rem;
    margin: 0.35rem 0 0;
    overflow: hidden;
    color: #fca5a5;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.google-auth-status:empty {
    visibility: hidden;
}

.google-auth-status.is-success {
    color: #86efac;
}

.google-auth-status.is-loading::before {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.45rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    vertical-align: -0.1em;
    animation: google-auth-spin 700ms linear infinite;
}

.google-auth-retry {
    display: flex;
    width: fit-content;
    max-width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    margin: 0.1rem auto 0;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
}

.google-auth-retry[hidden] {
    display: none;
}

.google-auth-retry:disabled {
    cursor: wait;
    opacity: 0.65;
}

.google-auth-widget.is-processing {
    opacity: 0.72;
    pointer-events: none;
}

@keyframes google-auth-spin {
    to { transform: rotate(360deg); }
}

@media (hover: hover) and (pointer: fine) {
    .google-auth-widget:not(.is-processing):hover {
        transform: translateY(-1px);
        filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
    }
}

.profile-google-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
    padding: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius, 16px);
    background: var(--bg-card);
}

.profile-google-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.profile-google-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
}

.profile-google-copy h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.profile-google-copy p,
.profile-google-note {
    margin: 0.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.profile-google-status {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 650;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

body.kaka-storefront[data-appearance-theme="light"] .google-auth-widget:focus-within {
    outline-color: rgba(37, 99, 235, 0.36);
}

body.kaka-storefront[data-appearance-theme="light"] .google-auth-status {
    color: #b42332;
}

body.kaka-storefront[data-appearance-theme="light"] .google-auth-status.is-success {
    color: #167447;
}

@media (prefers-reduced-motion: reduce) {
    .google-auth-widget {
        transition: none;
    }

    .google-auth-status.is-loading::before {
        animation: none;
    }

    .google-auth-widget:not(.is-processing):hover {
        transform: none;
        filter: none;
    }
}
