/* EliteplantMarketplace — styles for WCFM registration, profile photo, seller consents */

/* Кнопка "Стать продавцом" */
.woocommerce-form-register a[href*="vendor-register"] {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    line-height: 46px !important;
    margin-top: 12px !important;
    text-align: center !important;
    text-decoration: none !important;
    background: rgb(241,180,70) !important;
    color: #ffffff !important;
    border-radius: 23px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
}

/* hover эффект */
.woocommerce-form-register a[href*="vendor-register"]:hover {
    background: rgb(225,165,55) !important;
    color: #ffffff !important;
}

/* =========================================================
   СТИЛЬ ДЛЯ ДОБАВЛЕНИЯ ФОТО
   ========================================================= */

.sr-profile-photo-preview {
    margin: 0 0 20px;
}

.sr-profile-photo-image {
    width: 120px;
    height: 120px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.sr-profile-photo-file-wrap {
    margin-bottom: 16px;
}

.sr-profile-photo-actions .button {
    min-width: 180px;
    margin-right: 10px;
}

/* КНОПКА "СОХРАНИТЬ ФОТО" — компактная */
.sr-profile-photo-form .button {
    width: auto;
    min-width: 180px;
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    background: #4F6540;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* hover */
.sr-profile-photo-form .button:hover {
    background: #3f5233;
}

/* =========================================================

/* =========================================================
   SELLER REGISTRATION PAGE
   ========================================================= */

.wcfm-membership-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.wcfm_registration_form_heading {
    display: none !important;
}

#wcfm-main-contentainer,
#wcfm-content,
#wcfm_membership_container,
#wcfm_membership_container .wcfm-container,
#wcfm_membership_container .wcfm-content,
#wcfm_membership_container .wcfm-membership-wrapper,
.sr-seller-auth-page,
.sr-seller-auth-grid,
.sr-seller-auth-col--register {
    background: #F6F7F8 !important;
    box-shadow: none !important;
    border: 0 !important;
}

.sr-seller-auth-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
}

.sr-seller-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 470px) minmax(260px, 1fr);
    gap: 56px;
    align-items: stretch;
}

.sr-seller-auth-col--register {
    padding-right: 0;
}

.sr-seller-auth-col--login {
    background: transparent !important;
    border-left: 1px solid #d9d9d9;
    padding-left: 56px;
    display: block;
}

.sr-seller-form,
.sr-seller-login-side {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.sr-seller-form {
    margin: 0;
}

.sr-seller-title {
    display: block !important;
    margin: 0 0 10px;
    color: #4F6540;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.sr-seller-row {
    margin-bottom: 6px;
}

.sr-seller-field {
    width: 100%;
}

.sr-seller-field input[type="text"],
.sr-seller-field input[type="email"],
.sr-seller-field input[type="password"],
.sr-seller-field input[type="number"],
.sr-seller-field input[type="tel"],
.sr-seller-field textarea,
.sr-seller-field select {
    width: 100%;
    max-width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    background: #F6F7F8 !important;
    color: #333333;
    font-size: 15px;
    box-sizing: border-box;
    box-shadow: none;
    outline: none;
}

.sr-seller-field input::placeholder,
.sr-seller-field textarea::placeholder {
    color: #6f7767;
    opacity: 1;
}

.sr-seller-field input:focus,
.sr-seller-field textarea:focus,
.sr-seller-field select:focus {
    border-color: #c7c7c7;
    outline: none;
    box-shadow: none;
}

.sr-seller-help {
    display: none !important;
}

/* код подтверждения */
.sr-seller-code-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 2px;
}

.sr-seller-code-group .wcfm_email_verified_input {
    width: 230px !important;
    min-width: 230px;
    max-width: 230px;
    margin: 0 !important;
}

.sr-seller-code-group .wcfm_email_verified_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 145px;
    max-width: 100%;
    height: 36px;
    padding: 0 14px;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #4F6540 !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase !important;
    box-shadow: none;
    line-height: 1;
    white-space: nowrap;
}

.sr-seller-code-group .wcfm_email_verified_button:hover {
    background: #3f5233 !important;
    color: #ffffff !important;
}

.sr-seller-verified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4F6540;
    font-weight: 600;
}

.sr-seller-strength {
    margin-top: 4px;
}

/* чекбокс */
.sr-seller-row--terms {
    margin-top: 10px;
    margin-bottom: 8px;
}

.sr-seller-field--full {
    width: 100%;
}

.sr-seller-terms {
    display: grid !important;
    grid-template-columns: 16px 1fr !important;
    align-items: start !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    justify-content: start !important;
    text-align: left !important;
    color: #555555;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 !important;
    width: 100%;
    position: relative;
}

.sr-seller-terms input[type="checkbox"],
.sr-seller-terms .wcfm-checkbox,
#wcfm_membership_registration_form #terms {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    float: none !important;
    vertical-align: top !important;
    accent-color: #4F6540;
    justify-self: start !important;
    align-self: start !important;
}

.sr-seller-terms span {
    display: block !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sr-seller-terms a {
    color: #333333;
    font-weight: 700;
    text-decoration: underline;
}

/* кнопка регистрации */
.sr-seller-actions {
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

.sr-seller-actions .wcfm_submit_button,
#wcfm_membership_register_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 38px;
    padding: 0 18px;
    margin: 0 auto !important;
    border: 0;
    border-radius: 999px !important;
    background: #4F6540 !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase !important;
    box-shadow: none;
    line-height: 1;
    float: none !important;
}

.sr-seller-actions .wcfm_submit_button:hover,
#wcfm_membership_register_button:hover {
    background: #3f5233 !important;
    color: #ffffff !important;
}

.sr-seller-form .wcfm-message {
    margin-top: 6px;
    border-radius: 14px;
    padding: 10px 14px;
    box-sizing: border-box;
}

/* правый блок */
.sr-seller-login-side {
    width: 100%;
    padding-top: 0;
}

.sr-seller-login-text {
    margin: 0 0 18px;
    color: #666666;
    font-size: 16px;
    line-height: 1.7;
}

.sr-seller-login-btn-wrap {
    text-align: center;
}

.sr-seller-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px !important;
    background: #4F6540 !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase !important;
    box-shadow: none;
    line-height: 1;
}

.sr-seller-login-btn:hover {
    background: #3f5233 !important;
    color: #ffffff !important;
}

.sr-seller-auth-col--register,
.sr-seller-auth-col--login {
    min-height: 100%;
}

@media (max-width: 991px) {
    .sr-seller-auth-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sr-seller-auth-col--login {
        border-left: 0;
        border-top: 1px solid #d9d9d9;
        padding-left: 0;
        padding-top: 24px;
        display: block;
    }

    .sr-seller-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .sr-seller-code-group .wcfm_email_verified_input,
    .sr-seller-code-group .wcfm_email_verified_button,
    .sr-seller-actions .wcfm_submit_button,
    #wcfm_membership_register_button,
    .sr-seller-login-btn {
        width: 100% !important;
        max-width: 100%;
    }
}

/* ЖИРНЫЕ ССЫЛКИ В СОГЛАСИИ */
#terms + p a,
#terms + label a,
.sr-seller-terms a,
.sr-seller-terms span a,
#wcfm_membership_registration_form .sr-seller-terms a,
#wcfm_membership_registration_form label a {
    font-weight: 700 !important;
    font-family: inherit !important;
    color: #333333 !important;
    text-decoration: underline !important;
}

#terms + p a *,
#terms + label a *,
.sr-seller-terms a *,
#wcfm_membership_registration_form .sr-seller-terms a *,
#wcfm_membership_registration_form label a * {
    font-weight: 700 !important;
}

/* =========================================================
   БЛОК СОГЛАСИЙ ПРОДАВЦА
   ========================================================= */

.sr-seller-row--terms {
    margin-top: 18px;
}

.sr-seller-row--terms .sr-seller-field--full {
    width: 100%;
    display: block !important;
}

/* Каждый чекбокс отдельной строкой */
.sr-seller-terms {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #4f5f44 !important;
    cursor: pointer;
    text-align: left !important;
    float: none !important;
    clear: both !important;
}

.sr-seller-terms:last-child {
    margin-bottom: 0 !important;
}

/* Убираем стили темы с внутренних span/label */
.sr-seller-terms > span {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    float: none !important;
}

.sr-seller-terms input[type="checkbox"],
.sr-seller-terms .wcfm-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    flex: 0 0 18px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    border: 1.5px solid #b8b8b8 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    position: relative !important;
    float: none !important;
    vertical-align: top !important;
    cursor: pointer !important;
}

.sr-seller-terms input[type="checkbox"]:checked,
.sr-seller-terms .wcfm-checkbox:checked {
    background: #5d7346 !important;
    border-color: #5d7346 !important;
}

.sr-seller-terms input[type="checkbox"]:checked::after,
.sr-seller-terms .wcfm-checkbox:checked::after {
    content: "" !important;
    position: absolute !important;
    left: 5px !important;
    top: 1px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

.sr-seller-terms .required {
    color: #d74b4b !important;
    margin-right: 4px !important;
    font-weight: 700 !important;
}

.sr-seller-terms a {
    font-weight: 700 !important;
    text-decoration: underline !important;
    color: #333333 !important;
}

.sr-seller-terms a:hover {
    opacity: 0.85;
}

.sr-seller-row--terms .wcfm_title,
.sr-seller-row--terms label.wcfm_title {
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    float: none !important;
    margin: 0 0 12px 0 !important;
}

/* Сообщения */
#wcfm_membership_registration_form .wcfm-message {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Мобильная версия */
@media (max-width: 991px) {
    .sr-seller-terms {
        font-size: 13px !important;
        line-height: 1.45 !important;
        gap: 9px !important;
    }

    .sr-seller-terms input[type="checkbox"],
    .sr-seller-terms .wcfm-checkbox {
        width: 17px !important;
        height: 17px !important;
        min-width: 17px !important;
        max-width: 17px !important;
        flex: 0 0 17px !important;
    }
}

/* =========================================================
   СОГЛАСИЯ ПРОДАВЦА — СТАБИЛЬНАЯ ВЕРСТКА
   ========================================================= */

.sr-seller-row--terms {
    margin-top: 18px !important;
}

.sr-seller-row--terms .sr-seller-field--full {
    width: 100% !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.sr-consent-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    text-align: left !important;
}

.sr-consent-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    flex: 0 0 18px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    border: 1.5px solid #b8b8b8 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    position: relative !important;
    float: none !important;
    cursor: pointer !important;
}

.sr-consent-checkbox:checked {
    background: #5d7346 !important;
    border-color: #5d7346 !important;
}

.sr-consent-checkbox:checked::after {
    content: "" !important;
    position: absolute !important;
    left: 5px !important;
    top: 1px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

.sr-consent-label {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: #4f5f44 !important;
    cursor: pointer !important;
}

.sr-consent-label .required {
    display: inline !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    color: #d74b4b !important;
    font-weight: 700 !important;
}

.sr-consent-label a {
    font-weight: 700 !important;
    text-decoration: underline !important;
    color: #333333 !important;
}

.sr-consent-label a:hover {
    opacity: .85 !important;
}

.sr-consent-row br {
    display: none !important;
}
