.smogus-social-auth {
    margin-top: 1.2em;
    padding-top: 1em;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.smogus-social-auth__label {
    margin: 0 0 0.6em;
    font-weight: 700;
}

.smogus-social-auth__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
}

.smogus-social-auth__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.55em 1.1em;
    border: 2px solid #211c1d;
    font-weight: 700;
    text-decoration: none !important;
    color: #211c1d !important;
    background: #fff;
}

.smogus-social-auth__btn:hover,
.smogus-social-auth__btn:focus {
    background: rgba(0, 0, 0, 0.06);
    color: #211c1d !important;
}

.smogus-social-auth__btn-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: no-repeat center center;
    background-size: contain;
}

.smogus-social-auth__btn-icon--google {
    background-image: url('/wp-content/themes/storefront-child/assets/icon/ic_google.svg');
}

.smogus-social-auth__btn-icon--yandex {
    width: 24px;
    height: 24px;
    background-image: url('/wp-content/themes/storefront-child/assets/icon/ic_yandex.svg');
    background-size: 24px 24px;
}

.smogus-social-auth__notice {
    margin: 0.4em 0 0;
    font-size: 0.92em;
    opacity: 0.85;
}

#smogus-tob-gate-modal .smogus-social-auth__btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55em;
    padding: 0.55em 1.1em !important;
    border: 2px solid #211c1d !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #211c1d !important;
    background: #fff !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

#smogus-tob-gate-modal .smogus-social-auth__btn:hover,
#smogus-tob-gate-modal .smogus-social-auth__btn:focus {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #211c1d !important;
    transform: none !important;
    box-shadow: none !important;
}

.smogus-social-auth--modal,
#smogus-tob-gate-modal .smogus-social-auth {
    margin-top: 0.8em;
    padding-top: 0;
    border-top: 0;
}

.smogus-social-auth--buttons-only {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

form.login.smogus-checkout-oauth-only {
    margin-top: 0.6em;
}

#smogus-tob-gate-modal .smogus-social-auth__buttons {
    justify-content: center;
}

#smogus-tob-gate-modal .modal_content__actions {
    justify-content: center;
    gap: 0.8em;
}

/* Центрируем карточку; без align-items: center flex растягивает её на всю высоту экрана */
#smogus-tob-gate-modal {
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

#smogus-tob-gate-modal .modal_content {
    margin: 0 auto;
    width: min(500px, 100%);
    max-height: calc(100dvh - 32px);
    height: auto;
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    #smogus-tob-gate-modal {
        min-height: 100dvh;
        min-height: 100svh;
        padding: 12px;
    }

    #smogus-tob-gate-modal .modal_content {
        width: min(100%, 560px);
        max-height: calc(100dvh - 24px);
        max-height: calc(100svh - 24px);
    }
}
