/**
 * Alvoble Social Login - https://alvoble.com
 * Copyright (c) 2026 Company System Ltd. All rights reserved.
 *
 * Sign-in buttons for the Luma and Alvoble Storefront login and create-account pages. Colours and the font come from
 * the theme's design tokens, with fallbacks so the module also looks right on Luma. Logical properties throughout.
 */

.alvoble-social-login {
    --alv-sl-ink: var(--color-ink, #1a1a1a);
    --alv-sl-muted: var(--color-ink-muted, #595959);
    --alv-sl-line: var(--color-line, #c2c2c2);
    --alv-sl-surface: var(--color-surface, #ffffff);
    --alv-sl-focus: var(--color-primary, #1979c3);
    --alv-sl-radius: var(--radius, 4px);

    clear: both;
    inline-size: 100%;
    margin-block: 1.25rem;
    font-family: var(--font-sans, inherit);
}

.alvoble-social-login__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    color: var(--alv-sl-muted);
    font-size: 0.875rem;
    text-align: center;
}

.alvoble-social-login__title::before,
.alvoble-social-login__title::after {
    content: "";
    flex: 1 1 auto;
    border-block-start: 1px solid var(--alv-sl-line);
}

.alvoble-social-login__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.alvoble-social-login__item {
    margin: 0;
    padding: 0;
}

.alvoble-social-login__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-sizing: border-box;
    inline-size: 100%;
    min-block-size: 2.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--alv-sl-line);
    border-radius: var(--alv-sl-radius);
    background: var(--alv-sl-surface);
    color: var(--alv-sl-ink);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.alvoble-social-login__button:hover {
    border-color: var(--alv-sl-ink);
    color: var(--alv-sl-ink);
    text-decoration: none;
}

.alvoble-social-login__button:focus-visible {
    outline: 2px solid var(--alv-sl-focus);
    outline-offset: 2px;
}

.alvoble-social-login__button--apple {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.alvoble-social-login__button--apple:hover {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #ffffff;
}

.alvoble-social-login__icon {
    display: inline-flex;
    flex: 0 0 auto;
}

@media (min-width: 640px) {
    .alvoble-social-login__list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .alvoble-social-login__item {
        flex: 1 1 11rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alvoble-social-login__button {
        transition: none;
    }
}
