/**
 * SnapOn theme overrides for 2FA OTP popup (loads after twoFactor.css)
 * @author Magebit <info@magebit.com>
 * @copyright Copyright (c) Magebit, Ltd. (https://magebit.com)
 * @license https://magebit.com/code-license
 */

.otp_modal_popup .modal-title,
.otpModalCustomer .modal-title {
    font-size: 30px;
    line-height: 1.2;
}

.otp_modal_popup .action-close:before,
.otpModalCustomer .action-close:before {
    font-size: 32px;
}

.otp_modal_popup .action-close,
.otpModalCustomer .action-close {
    padding: 0 0 18px 18px;
    top: 10px;
    right: 10px;
}

.otpContainer > div {
    padding: 0;
    margin-top: 0;
}

.otpContainer-responseMessage.success {
    color: var(--gray-dark);
    background-color: transparent;
}

.otpContainer-responseMessage.error,
.otp_modal_popup .error,
.otpModalCustomer .error {
    color: var(--error);
    background-color: transparent;
}

.otp_modal_popup .validate_error > span,
.otpModalCustomer .validate_error > span,
.otpContainer-validationError {
    color: var(--error);
    background-color: transparent;
}

.otpContainer-form > .addon {
    flex-direction: column;
    align-items: stretch;
}

.otpContainer-form .otpContainer-input,
input.otpContainer-input {
    font-family: inherit;
    text-align: center;
    margin-right: 0;
    margin-bottom: 20px;
}

.otp_modal_popup input.otpContainer-input.valid,
.otpModalCustomer input.otpContainer-input.valid {
    background-image: none;
    background-repeat: unset;
    background-size: unset;
    background-position: unset;
}

.otpContainer-form-container button.otp_resend,
.otpContainer-form-container button.otpResendBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    padding: 0;
    margin-bottom: 20px;
    background-color: var(--white);
    border: 1px solid var(--gray);
    font-weight: 600;
    font-size: 16px;
    color: var(--primary, var(--error));
    text-decoration: none;
    box-shadow: none;
    box-sizing: border-box;
}

.otpContainer-form-container button.otp_resend:hover,
.otpContainer-form-container button.otpResendBtn:hover {
    background-color: var(--gray-light);
    border-color: var(--gray);
    color: var(--primary-hover, var(--secondary-hover));
    text-decoration: none;
}

.otpContainer-form-container .otpResendBtnWaiting {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    padding: 0;
    margin-bottom: 20px;
    background-color: var(--white);
    border: 1px solid var(--gray);
    font-weight: 400;
    font-size: 14px;
    color: var(--gray-dark);
    box-sizing: border-box;
    box-shadow: none;
}

.otpContainer-form-container .otpResendBtnWaiting:hover {
    text-decoration: none;
    background-color: var(--white);
}

@media only screen and (max-width: 768px) {
    .otp_modal_popup .modal-content,
    .otpModalCustomer .modal-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}
