/* ─── MNotify OTP Auth — Frontend Styles ─────────────────────── */

.mno-wrap {
    max-width: 420px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #333;
}

/* Title */
.mno-title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Fields */
.mno-field {
    margin-bottom: 14px;
}

.mno-phone-row {
    display: flex;
    gap: 8px;
}

/* Locked country code — matches the select visually but is not interactive */
.mno-country-locked {
    display: inline-flex;
    align-items: center;
    width: 130px;
    flex-shrink: 0;
    padding: 10px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f6f7f7;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: default;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
}

.mno-country-locked .mno-cc-name {
    font-weight: 400;
    font-size: 12px;
    color: #666;
    margin-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mno-country-code {
    width: 130px;
    flex-shrink: 0;
    padding: 10px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: auto;
}

.mno-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.mno-input:focus,
.mno-country-code:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

/* OTP input — larger for readability */
.mno-otp-input {
    letter-spacing: 6px;
    font-size: 22px;
    text-align: center;
}

/* Checkbox row */
.mno-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mno-check-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Buttons */
.mno-btn {
    display: inline-block;
    width: 100%;
    padding: 11px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-align: center;
}

.mno-btn:hover:not(:disabled) {
    background: #135e96;
}

.mno-btn:disabled,
.mno-btn.mno-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.mno-btn-link {
    background: none;
    border: none;
    color: #2271b1;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.mno-btn-link:hover {
    color: #135e96;
}

/* Messages */
.mno-msg {
    padding: 9px 14px;
    border-radius: 5px;
    margin-bottom: 12px;
    font-size: 14px;
    display: none;
}

.mno-msg--error {
    background: #fef0f0;
    border: 1px solid #f5c6cb;
    color: #c0392b;
}

.mno-msg--success {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    color: #1e8449;
}

/* OTP hint */
.mno-otp-hint {
    margin: 0 0 14px;
    font-size: 14px;
    color: #555;
}

/* Resend row */
.mno-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    min-height: 28px;
}

.mno-resend-timer {
    font-size: 13px;
    color: #888;
}

/* Current phone */
.mno-current-phone {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

/* Alt link (login ↔ register) */
.mno-alt-link {
    text-align: center;
    font-size: 14px;
    margin-top: 12px;
    color: #555;
}

.mno-alt-link a {
    color: #2271b1;
}

/* Logout button */
.mno-logout-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.mno-logout-btn:hover {
    background: #f5f5f5;
    color: #000;
}

/* WooCommerce notice */
.mno-wc-verified {
    color: #1e8449;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Step transitions */
.mno-step {
    animation: mno-fade-in 0.2s ease;
}

@keyframes mno-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .mno-wrap {
        max-width: 100%;
    }
    .mno-country-code {
        width: 110px;
    }
}