/* ================================================================
 * ListDome — My Profile compact 2-column LD Style
 * v0.1.309
 * Page 158 only (enqueued conditionally from ListDome core).
 *
 * IMPORTANT:
 * Listeo's Profile Details template renders labels + controls directly
 * inside .my-profile (there are no .submit-field wrappers). The companion
 * JS adds lightweight .ld-profile-field wrappers around each label/control
 * group. No field names, values, form actions, validation or save logic are
 * changed.
 * ================================================================ */

/* ---------------- Base compact typography / controls ---------------- */
#edit_user .my-profile > .ld-profile-field > label,
#edit_user .my-profile > label,
#dashboard .dashboard-content form[name="resetpasswordform"] > label {
    display: block !important;
    margin: 0 0 6px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

#edit_user .my-profile input[type="text"],
#edit_user .my-profile input[type="email"],
#edit_user .my-profile input[type="password"],
#edit_user .my-profile input[type="tel"],
#edit_user .my-profile input[type="url"],
#edit_user .my-profile input[type="number"],
#edit_user .my-profile select,
#dashboard .dashboard-content form[name="resetpasswordform"] input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
}

#edit_user .my-profile textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 82px !important;
    height: 82px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    box-sizing: border-box !important;
    resize: vertical !important;
}

/* ---------------- Actual Profile Details 2-column grid ---------------- */
#edit_user .my-profile.ld-profile-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 18px !important;
    row-gap: 14px !important;
    align-items: start !important;
}

#edit_user .my-profile.ld-profile-grid > .ld-profile-field {
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Textareas, compound widgets and explicit full rows stay comfortable. */
#edit_user .my-profile.ld-profile-grid > .ld-profile-field--full,
#edit_user .my-profile.ld-profile-grid > .ld-profile-full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Dynamic Listeo fields can contain Select2 / checkbox wrappers. */
#edit_user .my-profile.ld-profile-grid .select2-container,
#edit_user .my-profile.ld-profile-grid .chosen-container,
#edit_user .my-profile.ld-profile-grid .select2-selection,
#edit_user .my-profile.ld-profile-grid .checkboxes,
#edit_user .my-profile.ld-profile-grid .radio,
#edit_user .my-profile.ld-profile-grid .input-text {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Keep notices and save action clean and full width. */
#edit_user .my-profile.ld-profile-grid > .notification,
#edit_user .my-profile.ld-profile-grid > button[type="submit"],
#edit_user .my-profile.ld-profile-grid > input[type="submit"] {
    grid-column: 1 / -1 !important;
}

#edit_user .my-profile > button[type="submit"],
#dashboard .dashboard-content form[name="resetpasswordform"] input[type="submit"] {
    min-height: 40px !important;
    margin-top: 4px !important;
    padding: 9px 18px !important;
}

/* Tighten card interior slightly without touching Notifications. */
#edit_user .dashboard-list-box-static {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Avatar block: less dead space before the field grid. */
#edit_user .edit-profile-photo {
    margin-bottom: 18px !important;
}

/* Password card remains native/safe, just more compact. */
#dashboard .dashboard-content form[name="resetpasswordform"] > label {
    margin-top: 12px !important;
}
#dashboard .dashboard-content form[name="resetpasswordform"] > label:first-of-type {
    margin-top: 0 !important;
}

/* Notifications live on the same page: preserve their dedicated LD styling. */
#dashboard .listeo-np-prefs label,
#dashboard .listeo-np-prefs .listeo-np-head-title strong {
    font-size: inherit !important;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 899px) {
    #edit_user .my-profile.ld-profile-grid {
        grid-template-columns: 1fr !important;
        row-gap: 12px !important;
    }

    #edit_user .my-profile.ld-profile-grid > .ld-profile-field,
    #edit_user .my-profile.ld-profile-grid > .ld-profile-field--full,
    #edit_user .my-profile.ld-profile-grid > .ld-profile-full {
        grid-column: 1 !important;
    }

    #edit_user .my-profile input[type="text"],
    #edit_user .my-profile input[type="email"],
    #edit_user .my-profile input[type="password"],
    #edit_user .my-profile input[type="tel"],
    #edit_user .my-profile input[type="url"],
    #edit_user .my-profile input[type="number"],
    #edit_user .my-profile select {
        min-height: 42px !important;
        height: 42px !important;
    }
}

/* ================================================================
 * ListDome profile completeness / User vs Business guidance
 * v0.1.342
 * ================================================================ */
#edit_user .my-profile .ld-profile-role-help {
    margin-top: 8px !important;
    padding: 11px 13px !important;
    border: 1px solid rgba(56, 182, 255, 0.34) !important;
    border-radius: 10px !important;
    background: rgba(18, 33, 73, 0.72) !important;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
}


#edit_user .my-profile .ld-profile-field--hidden {
    display: none !important;
}

#edit_user .my-profile .ld-profile-required > label::after {
    content: " *" !important;
    color: #38B6FF !important;
    font-weight: 700 !important;
}

#edit_user .my-profile .ld-profile-validation-notice {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 0 6px !important;
    padding: 13px 15px !important;
    border: 1px solid rgba(255, 84, 112, 0.62) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(255, 84, 112, 0.11), rgba(167, 55, 255, 0.10)) !important;
    color: #fff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#edit_user .my-profile .ld-profile-validation-notice strong {
    display: block !important;
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

#edit_user .my-profile .ld-profile-validation-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

#edit_user .my-profile .ld-profile-validation-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 8px !important;
    background: rgba(8, 16, 35, 0.34) !important;
    color: rgba(255,255,255,0.92) !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
}

#edit_user .my-profile .ld-profile-validation-dot {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 1px !important;
    background: rgba(255, 84, 112, 0.16) !important;
    border: 1px solid rgba(255, 84, 112, 0.75) !important;
    color: #ff7a91 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

#edit_user .my-profile .ld-profile-validation-text {
    display: block !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(255,255,255,0.90) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    background: transparent !important;
}

/* ================================================================
 * ListDome preset avatars — native Listeo avatar ID integration
 * v0.1.342
 * ================================================================ */
#edit_user .edit-profile-photo {
    width: 100% !important;
    max-width: 100% !important;
}

#edit_user .ld-avatar-presets {
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 13px !important;
    border: 1px solid rgba(56, 182, 255, 0.30) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, rgba(18,33,73,0.92), rgba(8,16,35,0.94)) !important;
    box-sizing: border-box !important;
}

#edit_user .ld-avatar-presets-intro {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin: 0 0 10px !important;
}

#edit_user .ld-avatar-presets-title {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

#edit_user .ld-avatar-presets-help,
#edit_user .ld-avatar-upload-copy {
    color: rgba(255,255,255,0.72) !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
}

#edit_user .ld-avatar-presets-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 92px)) !important;
    gap: 10px !important;
    align-items: start !important;
    margin: 0 0 10px !important;
}

#edit_user .ld-avatar-preset {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    width: 92px !important;
    margin: 0 !important;
    padding: 7px !important;
    border: 1px solid rgba(255,255,255,0.13) !important;
    border-radius: 12px !important;
    background: rgba(8,16,35,0.60) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}

#edit_user .ld-avatar-preset:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(56,182,255,0.58) !important;
    box-shadow: 0 0 18px rgba(56,182,255,0.10) !important;
}

#edit_user .ld-avatar-preset.is-selected {
    border-color: #38B6FF !important;
    box-shadow: 0 0 0 1px rgba(167,55,255,0.48), 0 0 20px rgba(56,182,255,0.14) !important;
    background: rgba(18,33,73,0.92) !important;
}

#edit_user .ld-avatar-preset-image {
    position: relative !important;
    display: block !important;
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #081023 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12) !important;
}

#edit_user .ld-avatar-preset-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: 0 !important;
    border-radius: 50% !important;
}

#edit_user .ld-avatar-preset-badge {
    position: absolute !important;
    left: 50% !important;
    bottom: 4px !important;
    transform: translateX(-50%) !important;
    padding: 2px 6px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #A737FF, #38B6FF) !important;
    color: #fff !important;
    font-size: 8px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
}

#edit_user .ld-avatar-preset-label {
    color: rgba(255,255,255,0.90) !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

#edit_user .ld-avatar-upload-copy {
    padding-top: 9px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
}

@media (max-width: 600px) {
    #edit_user .ld-avatar-presets-grid {
        grid-template-columns: repeat(2, minmax(0, 86px)) !important;
        gap: 8px !important;
    }
    #edit_user .ld-avatar-preset {
        width: 86px !important;
    }
    #edit_user .ld-avatar-preset-image {
        width: 68px !important;
        height: 68px !important;
    }
}



/* v0.1.343 — preset avatar immediate-save state */
#edit_user .ld-avatar-preset.is-saving {
    opacity: .62 !important;
    cursor: wait !important;
    pointer-events: none !important;
}
