/* ------------------------------------------------------------------
 * OTP Modal — shared styles
 * Used on: login, register, change-phone pages
 * ------------------------------------------------------------------ */

/* Bootstrap modal overrides */
.modal {
    --bs-modal-border-radius: 1rem;
    --bs-modal-header-padding: 1rem 1.5rem;
    --bs-modal-bg: #FAFAFA;
    --primary-gray-300: #E2E1E0;
    --primary-orange-50: #FFF4E6;
    --primary-orange-100: #FFE8CC;
    --primary-gray-600: #777675;
    --white-color: #FFF;
    --primary-orange-800: #E16F37;
}

.modal-header {
    justify-content: flex-end;
    border: none;
}

.modal-header .close {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.modal-body-container {
    max-width: 360px;
    margin: auto;
    text-align: center;
    padding-bottom: 1.5rem;
}

.modal-footer {
    padding: 0;
    border: none;
    flex-direction: column;
    gap: 32px;
}

.modal-footer>* {
    width: 100%;
    margin: 0;
}

.modal-icon,
.icon-wrapper {
    display: inline-flex;
    border-radius: 50%;
    border: 10px solid var(--primary-orange-50);
    background: var(--primary-orange-100);
    padding: 14px;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    margin-bottom: 12px;
}

/* Notices inside the modal */
.woocommerce-notices-wrapper {
    color: var(--primary-gray-600);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 24px !important;
    max-width: 100% !important;
}

.woocommerce-notices-wrapper ul,
.woocommerce-notices-wrapper li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-notices-wrapper li {
    color: inherit !important;
    font-weight: inherit !important;
}

/* OTP PIN inputs */
.otpifyModal .otp-form .pinbox-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.rtl .otpifyModal .otp-form .pinbox-inputs {
    flex-direction: row-reverse;
}

.otpifyModal .otp-form .pinbox-box {
    height: 50px;
    max-width: 50px;
    width: 100%;
    border-radius: 4px;
    border: 2px solid var(--primary-gray-300);
    background: var(--white-color);
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    padding: 10px 8px;
    font-size: 30px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: -0.96px;
    text-align: center;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .otpifyModal .otp-form .pinbox-box {
        height: 80px;
        max-width: 80px;
        font-size: 48px;
        line-height: 60px;
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        --bs-modal-width: 992px;
    }
}

.otpifyModal .otp-form .pinbox-box:focus,
.otpifyModal .otp-form .pinbox-box.input-active {
    border-color: var(--primary-orange-800);
    color: var(--primary-orange-800);
    box-shadow: none;
}

.otpifyModal .otp-form .pinbox-box:focus {
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(250, 223, 185, 0.50);
}

/* Resend timer */
.timer-msg-btn,
.timer-msg-btn span.invalid-otp-msg {
    color: var(--primary-gray-600);
    display: inline;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.timer-msg-btn .resend-otp-link {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none !important;
    color: var(--primary-orange-800);
}