/* Compact account binding dialog used only by Template 2 checkout. */
.member-auth-backdrop.checkout-auth-backdrop.login_model {
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    height: 100%;
    height: 100dvh;
    overflow-y: auto;
    align-items: center;
    background: rgba(0, 0, 0, .5);
    color: #fff;
}

.checkout-auth-backdrop .member-auth.checkout-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #745af1;
    box-shadow: 0 12px 42px #0006;
}

.checkout-auth-backdrop .checkout-auth .member-auth-content {
    min-width: 0;
    min-height: 0;
    padding: 24px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #745af1;
    scrollbar-width: thin;
    scrollbar-color: #bdb0ff #745af1;
}

.checkout-auth-backdrop .checkout-auth .member-auth-close {
    top: 3px;
    right: 3px;
    width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
}

.checkout-auth-backdrop .checkout-auth .member-auth-close:hover {
    background: #ffffff1a;
    color: #fff;
}

.checkout-auth-backdrop .checkout-auth #member-auth-title {
    padding: 7px 25px 7px 7px;
    margin: 0;
    border-radius: 6px;
    background: #674bc9;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 650;
    text-align: center;
    overflow-wrap: anywhere;
}

.checkout-auth-backdrop .checkout-auth #member-auth-description {
    margin: 18px 0 22px;
    padding: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

.checkout-auth-backdrop .checkout-auth .member-field {
    margin-bottom: 18px;
}

.checkout-auth-backdrop .checkout-auth .member-field label {
    margin-bottom: 8px;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.checkout-auth-backdrop .checkout-auth .member-field input {
    height: 46px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #e6e0fb;
    border-radius: 8px;
    background: #fff;
    color: #2b2344;
    font-size: 16px;
    line-height: 1.5;
}

.checkout-auth-backdrop .checkout-auth .member-field input::placeholder {
    color: #716b7f;
}

.checkout-auth-backdrop .checkout-auth .member-password-wrap input {
    padding-right: 68px;
}

.checkout-auth-backdrop .checkout-auth .member-password-toggle {
    top: 1px;
    bottom: 1px;
    right: 3px;
    min-height: 44px;
    background: transparent;
    color: #5d409e;
    font-size: 13px;
}

.checkout-auth-backdrop .checkout-auth .member-field input:-webkit-autofill {
    -webkit-text-fill-color: #2b2344;
    box-shadow: 0 0 0 1000px #fff inset;
    caret-color: #2b2344;
}

.checkout-auth-backdrop .checkout-auth .member-field-help {
    margin-top: 7px;
    color: #fff;
    font-size: 12px;
    line-height: 1.7;
}

.checkout-auth-backdrop .checkout-auth .member-field-error {
    margin-top: 7px;
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
}

.checkout-auth-backdrop .checkout-auth .member-field input[aria-invalid="true"] {
    border: 2px solid #862b4a;
}

.checkout-auth-backdrop .checkout-auth .member-auth-error {
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #f3cfdb;
    border-radius: 8px;
    background: #533299;
    color: #fff;
    font-size: 13px;
    line-height: 1.7;
}

.checkout-auth-backdrop .checkout-auth .member-auth-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #fe9900;
    color: #261400;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 650;
}

.checkout-auth-backdrop .checkout-auth .member-auth-submit:hover {
    background: #ffad32;
    color: #261400;
}

.checkout-auth-backdrop .checkout-auth .member-auth-submit:disabled {
    opacity: .75;
    cursor: wait;
}

.checkout-auth-backdrop .checkout-auth .member-field input:focus {
    border-color: #3a255f;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.checkout-auth-backdrop .checkout-auth button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #3a255f;
}

@media (max-width: 360px) {
    .checkout-auth-backdrop .checkout-auth .member-auth-content {
        padding: 20px 16px;
    }
}

@media (max-height: 500px) {
    .member-auth-backdrop.checkout-auth-backdrop.login_model {
        align-items: flex-start;
    }

    .checkout-auth-backdrop .checkout-auth .member-auth-content {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .checkout-auth-backdrop .checkout-auth #member-auth-description {
        margin: 12px 0 16px;
    }
}
