/* Social login buttons under login forms (V350, plugins google_login / facebook_login); V821 — the sign-in without a
   password (FreeshopPasswordless): its buttons, page and the profile's passkeys. */
.fs-social-login {
    clear: both;
    margin-top: 1rem;
}

.fs-social-sep {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #6b7280;
    font-size: 0.85em;
}

.fs-social-sep::before,
.fs-social-sep::after {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
    content: "";
}

.fs-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

a.fs-social-btn,
button.fs-social-btn {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    font: inherit;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 0.5rem;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

a.fs-social-btn:hover,
a.fs-social-btn:focus,
button.fs-social-btn:hover,
button.fs-social-btn:focus {
    border-color: #c4c7cc;
    background: #f8f9fa;
    color: #1f2937;
    text-decoration: none;
}

a.fs-social-facebook,
a.fs-social-facebook:hover,
a.fs-social-facebook:focus {
    border-color: #1877f2;
    background: #1877f2;
    color: #fff;
}

a.fs-social-facebook:hover,
a.fs-social-facebook:focus {
    border-color: #166fe5;
    background: #166fe5;
}

.fs-social-icon {
    flex: none;
    width: 18px;
    height: 18px;
}

/* V821: the sign-in without a password. */
.fs-pwless-hide,
button.fs-pwless-hide {
    display: none;
}

.fs-pwless-busy {
    opacity: 0.6;
    cursor: progress;
}

.fs-pwless-message:empty {
    display: none;
}

.fs-pwless-message {
    margin: 0.5rem 0 0;
    color: #b45309;
    font-size: 0.9em;
}

.fs-pwless-page {
    box-sizing: border-box;
    max-width: 28rem;
    margin: 1.5rem auto 2.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--fs-radius, 0.5rem);
    line-height: 1.5;
}

.fs-pwless-page h1 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.fs-pwless-lead {
    margin: 0 0 1rem;
    opacity: 0.85;
}

.fs-pwless-field {
    margin: 0 0 1rem;
}

.fs-pwless-field label {
    display: block;
    margin: 0 0 0.3rem;
    font-weight: 600;
}

.fs-pwless-field input[type=email],
.fs-pwless-field input[type=text] {
    box-sizing: border-box;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: var(--fs-radius, 0.375rem);
    background: #fff;
    color: inherit;
    font: inherit;
}

.fs-pwless-field input.fs-pwless-code-input {
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    text-align: center;
}

.fs-pwless-page .fs-pwless-submit {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: var(--fs-radius, 0.5rem);
    background: var(--fs-primary, #2563eb);
    color: var(--fs-on-primary, #fff);
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.fs-pwless-links {
    margin: 1rem 0 0;
    font-size: 0.9em;
    text-align: center;
}

.fs-pwless-account {
    clear: both;
    margin: 2rem 0 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.fs-pwless-account h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.fs-pwless-list {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.fs-pwless-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fs-pwless-item form {
    margin: 0;
}

.fs-pwless-name {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.5rem;
    align-items: center;
}

.fs-pwless-name small {
    grid-column: 2;
    opacity: 0.7;
}
