/* Social login buttons — global (modal renders after @stack('css'), must not use @push) */

.wj-social-login {
    margin-top: 0;
    margin-bottom: 0;
}

.wj-social-login__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #8a94a6;
    font-size: 12px;
    line-height: 1.2;
}

.wj-social-login__divider::before,
.wj-social-login__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6eaf0;
}

.wj-social-login__col {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

@media (min-width: 769px) {
    .wj-social-login__col {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

.wj-social-login__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.wj-social-btn {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    padding: 0 48px;
    margin: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.wj-social-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(81, 145, 250, 0.22);
}

.wj-social-btn__icon-wrap {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: none;
    overflow: hidden;
}

.wj-social-btn__icon-wrap img,
.wj-social-btn__icon-wrap svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain;
}

.wj-social-btn__label {
    display: block;
    text-align: center;
    white-space: nowrap;
}

/* Override legacy .btn_login_gg_link / .btn_login_* from theme */
#login .wj-social-btn,
#register .wj-social-btn,
.bc-form-login .wj-social-btn,
.bc-form-register .wj-social-btn {
    display: flex !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

a.wj-social-btn.wj-social-btn--google,
a.wj-social-btn.wj-social-btn--google:hover,
a.wj-social-btn.wj-social-btn--google:focus {
    background: #fff !important;
    color: #1f1f1f !important;
    border: 1px solid #747775 !important;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08) !important;
}

a.wj-social-btn.wj-social-btn--google:hover {
    background: #f7f8f8 !important;
    border-color: #6a6f74 !important;
    color: #1f1f1f !important;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.14) !important;
}

.wj-social-btn--google .wj-social-btn__icon-wrap svg path:nth-child(1) { fill: #EA4335 !important; }
.wj-social-btn--google .wj-social-btn__icon-wrap svg path:nth-child(2) { fill: #4285F4 !important; }
.wj-social-btn--google .wj-social-btn__icon-wrap svg path:nth-child(3) { fill: #FBBC05 !important; }
.wj-social-btn--google .wj-social-btn__icon-wrap svg path:nth-child(4) { fill: #34A853 !important; }

button.wj-social-btn.wj-social-btn--apple,
button.wj-social-btn.wj-social-btn--apple:hover,
button.wj-social-btn.wj-social-btn--apple:focus {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
}

button.wj-social-btn.wj-social-btn--apple:hover {
    background: #1c1c1c !important;
    border-color: #1c1c1c !important;
    color: #fff !important;
}

.wj-social-btn--apple .wj-social-btn__icon-wrap svg,
.wj-social-btn--apple .wj-social-btn__icon-wrap svg path {
    fill: #fff !important;
}

.wj-social-btn--apple.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

a.wj-social-btn.wj-social-btn--facebook {
    background: #1877f2 !important;
    color: #fff !important;
    border: 1px solid #1877f2 !important;
}

a.wj-social-btn.wj-social-btn--twitter {
    background: #1da1f2 !important;
    color: #fff !important;
    border: 1px solid #1da1f2 !important;
}

.wj-social-btn--facebook .wj-social-btn__icon-wrap i,
.wj-social-btn--twitter .wj-social-btn__icon-wrap i {
    font-size: 18px;
    line-height: 1;
    color: #fff;
}

@media (max-width: 768px) {
    .wj-social-login__divider {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .wj-social-btn {
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        font-size: 15px;
        padding: 0 44px;
    }

    .wj-social-btn__icon-wrap {
        left: 16px;
        width: 22px;
        height: 22px;
    }

    .wj-social-btn__icon-wrap img,
    .wj-social-btn__icon-wrap svg {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }

    #login .wj-social-btn,
    #register .wj-social-btn {
        font-size: 15px !important;
    }
}
