/* Match the live account forms: Lite 6.1 changed these generated defaults. */
.ls-membership-compat .arm_form.arm-default-form .arm-df__form-group {
    padding: 5px !important;
}

.ls-membership-compat .arm_form.arm-default-form .arm_form_field_label_text,
.ls-membership-compat .arm_form.arm-default-form .arm-df__label-asterisk,
.ls-membership-compat .arm_form.arm-default-form .arm-df__label-text,
.ls-membership-compat .arm_form.arm-default-form .arm-df__fc-checkbox--label {
    line-height: 18px !important;
}

.ls-membership-compat .arm_form.arm-default-form input.arm-df__form-control {
    height: 45px !important;
    line-height: 29px !important;
}

.ls-membership-compat .arm_form.arm-default-form .arm-df__form-group_submit {
    margin-top: 10px !important;
}

.ls-membership-compat .arm_form.arm-default-form .arm-df__form-group_forgot_link {
    padding: 5px 7px 2px !important;
}

.ls-membership-compat .arm_form.arm-default-form .arm-df__heading .arm-df__heading-text {
    margin-bottom: 32px !important;
}

.ls-membership-compat .arm_form.arm-default-form input.arm-df__form-control--is-checkbox {
    box-sizing: content-box;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
}

.ls-membership-compat .arm_form.arm-default-form .arm-df__fc-checkbox--label {
    padding-left: 8px !important;
}

.ls-membership-compat .arm_form.arm_form_101,
.ls-membership-compat .arm_form.arm_form_106 {
    border: 0 !important;
}

/* Reuse the free form's AJAX, validation and anti-spam handling in a native dialog. */
.ls-member-recovery {
    position: fixed;
    inset: auto;
    left: calc(50% + 45px);
    top: calc(50% + 50px);
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: 590px;
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 40px);
    margin: 0;
    padding: 38.5px 20px 20px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #1a1a1a;
    overflow: auto;
}

.ls-member-recovery:not([open]) {
    display: none;
}

.ls-member-recovery::backdrop {
    background: rgb(0 0 0 / 60%);
}

.ls-member-recovery .arm-form-container,
.ls-member-recovery .arm_form {
    max-width: 100% !important;
}

body.ls-member-recovery-open {
    overflow: hidden;
}

/* A visible close control avoids the live popup's touch-screen dead end. */
.ls-member-recovery .ls-member-recovery-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #888;
    font: 24px / 24px Arial, sans-serif;
    box-shadow: none;
    cursor: pointer;
}

.ls-member-recovery .ls-member-recovery-close:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .ls-member-recovery {
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: none;
        transform: none;
    }
}
