.avtohobi-social-login {
    clear: both;
    margin: 1.25rem 0;
}

.avtohobi-social-privacy {
    margin: 0 0 1rem;
    color: #111;
    font-size: .9rem;
    line-height: 1.45;
}

.avtohobi-social-privacy label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    color: inherit !important;
    cursor: pointer;
    font-weight: 400 !important;
}

.avtohobi-social-privacy label::before,
.avtohobi-social-privacy label::after,
.avtohobi-social-privacy span::before,
.avtohobi-social-privacy span::after {
    display: none !important;
    content: none !important;
}

.avtohobi-social-privacy input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    inset: auto !important;
    display: inline-block !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #a8a8a8 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    background: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer;
}

.avtohobi-social-privacy input[type="checkbox"]:checked {
    border-color: #111 !important;
    background: #111 !important;
}

.avtohobi-social-privacy input[type="checkbox"]:checked::after {
    position: absolute !important;
    top: 2px !important;
    left: 6px !important;
    display: block !important;
    width: 6px !important;
    height: 11px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    content: "" !important;
    transform: rotate(45deg) !important;
}

.avtohobi-social-privacy input[type="checkbox"]:focus-visible {
    outline: 2px solid #111 !important;
    outline-offset: 2px !important;
}

.avtohobi-social-privacy a {
    color: inherit !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.avtohobi-social-privacy-error {
    display: block;
    margin: .45rem 0 0 30px;
    font-size: .8rem;
    line-height: 1.4;
}

.avtohobi-social-privacy-error {
    color: #b42318 !important;
    font-weight: 700;
}

.avtohobi-social-privacy-error[hidden] {
    display: none !important;
}

.avtohobi-privacy-invalid {
    padding: 12px !important;
    border: 1px solid #b42318 !important;
    border-radius: 8px;
    background: #fff4f2 !important;
    scroll-margin-block: 80px;
}

.avtohobi-privacy-invalid input[type="checkbox"],
.avtohobi-privacy-invalid input[type="checkbox"]::before {
    border-color: #b42318 !important;
}

.avtohobi-social-privacy-at-remember {
    margin: 0 0 1rem;
}

.avtohobi-social-login-separator {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
    color: #6b7280;
    font-size: .86rem;
    text-align: center;
}

.avtohobi-social-login-separator::before,
.avtohobi-social-login-separator::after {
    height: 1px;
    flex: 1 1 auto;
    background: #d1d5db;
    content: "";
}

.avtohobi-social-login-buttons {
    display: grid;
    gap: .75rem;
}

.avtohobi-social-login-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    box-sizing: border-box;
    padding: .7rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

button.avtohobi-social-login-button:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .48;
    transform: none;
}

.avtohobi-social-login-button:hover,
.avtohobi-social-login-button:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
    transform: translateY(-1px);
}

.avtohobi-social-login-button.is-google {
    border-color: #d1d5db;
    background: #fff;
    color: #1f2937;
}

.avtohobi-social-login-button.is-google:hover,
.avtohobi-social-login-button.is-google:focus {
    background: #f9fafb;
    color: #111827;
}

.avtohobi-social-login-button.is-facebook {
    border-color: #1877f2;
    background: #1877f2;
    color: #fff;
}

.avtohobi-social-login-button.is-facebook:hover,
.avtohobi-social-login-button.is-facebook:focus {
    background: #1468d4;
    color: #fff;
}

.avtohobi-social-login-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.avtohobi-social-login-icon img {
    display: block;
    width: 22px;
    height: 22px;
    max-width: none;
    object-fit: contain;
}

.is-google .avtohobi-social-login-icon {
    border: 1px solid #e5e7eb;
    background: #fff;
}

.is-facebook .avtohobi-social-login-icon {
    background: #fff;
}

.is-facebook .avtohobi-social-login-icon img {
    width: 24px;
    height: 24px;
}

.avtohobi-social-accounts {
    margin: 2rem 0;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.avtohobi-social-accounts h2 {
    margin-top: 0;
}

.avtohobi-social-account-list {
    display: grid;
    gap: .65rem;
    margin-top: 1rem;
}

.avtohobi-social-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.avtohobi-social-connected {
    color: #15803d;
    font-weight: 700;
}

body.avtohobi-profile-modal-open {
    overflow: hidden;
}

.avtohobi-profile-modal[hidden] {
    display: none !important;
}

.avtohobi-profile-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
}

.avtohobi-profile-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .68);
    cursor: default;
}

.avtohobi-profile-modal-backdrop::before,
.avtohobi-profile-modal-backdrop::after {
    display: none !important;
    content: none !important;
}

.avtohobi-profile-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    box-sizing: border-box;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    background: #fff;
    color: #111;
}

.avtohobi-profile-modal-dialog h2 {
    margin: 0 36px 10px 0;
    color: #111;
    font-size: 1.65rem;
    line-height: 1.2;
}

.avtohobi-profile-modal-dialog > p {
    margin: 0 0 22px;
    color: #4b5563;
    line-height: 1.55;
}

.avtohobi-profile-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    font-size: 30px;
    font-weight: 400;
    line-height: 34px;
}

.avtohobi-profile-modal-field {
    margin: 0 0 18px;
}

.avtohobi-profile-modal-field label {
    display: block;
    margin-bottom: 7px;
    color: #111;
    font-weight: 700;
}

.avtohobi-profile-modal-field input[type="tel"] {
    display: block;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #111;
    font-size: 16px;
}

.avtohobi-profile-modal-field input[type="tel"]:focus {
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .12);
    outline: 0;
}

.avtohobi-profile-modal-check {
    margin: 0 0 20px;
}

.avtohobi-profile-modal-check label {
    display: inline-flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    color: #111 !important;
    cursor: pointer;
    line-height: 1.45;
}

.avtohobi-profile-modal-check label::before,
.avtohobi-profile-modal-check label::after,
.avtohobi-profile-modal-check span::before,
.avtohobi-profile-modal-check span::after {
    display: none !important;
    content: none !important;
}

.avtohobi-profile-modal-check input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    display: inline-block !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    cursor: pointer !important;
}

.avtohobi-profile-modal-check input[type="checkbox"]::before {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    box-sizing: border-box !important;
    border: 1px solid #111 !important;
    border-radius: 2px !important;
    background: #fff !important;
    content: "" !important;
}

.avtohobi-profile-modal-check input[type="checkbox"]:checked::before {
    border-color: #111 !important;
    background: #111 !important;
}

.avtohobi-profile-modal-check input[type="checkbox"]:checked::after {
    position: absolute !important;
    top: 3px !important;
    left: 7px !important;
    display: block !important;
    width: 5px !important;
    height: 10px !important;
    box-sizing: border-box !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    content: "" !important;
    transform: rotate(45deg) !important;
}

.avtohobi-profile-modal-check input[type="checkbox"]:focus-visible::before {
    outline: 2px solid #111 !important;
    outline-offset: 2px !important;
}

.avtohobi-profile-modal-message {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: .95rem;
}

.avtohobi-profile-modal-message.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.avtohobi-profile-modal-message.is-success {
    background: #ecfdf5;
    color: #047857;
}

.avtohobi-profile-modal-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 7px !important;
    font-weight: 700 !important;
}

body.login .avtohobi-social-login {
    margin: 18px 0 4px;
}

body.login .avtohobi-social-login-button {
    box-shadow: none;
}

@media (max-width: 480px) {
    .avtohobi-social-login-button {
        padding-right: .75rem;
        padding-left: .75rem;
        font-size: .92rem;
    }

    .avtohobi-social-account-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .avtohobi-profile-modal {
        padding: 14px;
    }

    .avtohobi-profile-modal-dialog {
        padding: 26px 20px 22px;
    }

    .avtohobi-profile-modal-dialog h2 {
        font-size: 1.4rem;
    }
}
