/* ═══════════════════════════════════════════════════════════════════
   OTP Verification Woocommerce — Public Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── OTP Popup Overlay ─────────────────────────────────────────── */
.asmc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: asmc-fade-in 0.2s ease;
}

@keyframes asmc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal Box ──────────────────────────────────────────────────── */
.asmc-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
    animation: asmc-slide-up 0.25s ease;
}

@keyframes asmc-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Modal Header ───────────────────────────────────────────────── */
.asmc-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.asmc-modal-icon {
    font-size: 26px;
    line-height: 1;
}

.asmc-modal-header h2 {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
}

.asmc-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s;
}

.asmc-modal-close:hover {
    background: #f0f0f0;
    color: #1d2327;
}

/* ── Modal Description ──────────────────────────────────────────── */
.asmc-modal-desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* ── Steps ──────────────────────────────────────────────────────── */
.asmc-modal-step {
    margin-bottom: 12px;
}

.asmc-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
}

.asmc-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.asmc-modal-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px !important;
    border: 1.5px solid #c3c4c7 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    color: #1d2327 !important;
    background: #fafafa !important;
    transition: border-color 0.15s !important;
    box-shadow: none !important;
    outline: none !important;
}

.asmc-modal-input:focus {
    border-color: #007cba !important;
    background: #fff !important;
}

.asmc-otp-code {
    letter-spacing: 4px;
    font-size: 18px !important;
    font-weight: 700;
    text-align: center;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.asmc-btn-primary {
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.asmc-btn-primary:hover {
    background: #006ba1;
}

.asmc-btn-primary:disabled {
    background: #a0c4db;
    cursor: not-allowed;
}

.asmc-btn-place-order {
    width: 100%;
    padding: 14px !important;
    font-size: 16px !important;
    margin-top: 8px;
    border-radius: 8px;
    background: #00a32a;
}

.asmc-btn-place-order:hover {
    background: #007a1f;
}

.asmc-btn-link {
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 0 0;
    text-decoration: underline;
    display: inline-block;
}

.asmc-btn-cancel {
    background: none;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    color: #555;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 18px;
    transition: border-color 0.15s, color 0.15s;
}

.asmc-btn-cancel:hover {
    border-color: #999;
    color: #1d2327;
}

/* ── Messages ───────────────────────────────────────────────────── */
.asmc-modal-msg {
    margin-top: 10px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 5px;
    display: none;
}

.asmc-modal-success {
    background: #d7f5df;
    color: #1a7031;
    display: block;
}

.asmc-modal-error {
    background: #fce8e8;
    color: #b91c1c;
    display: block;
}

/* ── Sent notice ────────────────────────────────────────────────── */
.asmc-sent-notice {
    font-size: 13px;
    color: #555;
    margin: 0 0 14px;
    padding: 8px 12px;
    background: #f0f6fb;
    border-radius: 5px;
}

/* ── Verified State ─────────────────────────────────────────────── */
.asmc-verified-state {
    text-align: center;
    padding: 8px 0 4px;
}

.asmc-verified-check {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 8px;
}

.asmc-verified-text {
    font-size: 20px;
    font-weight: 700;
    color: #00a32a;
    margin: 0 0 6px;
}

.asmc-verified-sub {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
}

/* ── Modal Footer ───────────────────────────────────────────────── */
.asmc-modal-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════════
   INLINE OTP BOXES — Login / Registration
   ═══════════════════════════════════════════════════════════════════ */

.asmc-otp-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 18px 20px;
    margin: 16px 0;
    font-size: 14px;
}

.asmc-otp-desc {
    font-weight: 600;
    margin: 0 0 12px;
    color: #333;
}

.asmc-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.asmc-phone-input,
.asmc-code-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 15px !important;
}

.asmc-btn {
    white-space: nowrap;
    padding: 10px 16px !important;
    font-size: 14px !important;
    cursor: pointer;
}

.asmc-btn-link {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 0 0;
    text-decoration: underline;
    display: block;
}

.asmc-msg {
    margin-top: 8px;
    font-size: 13px;
    display: none;
}
.asmc-msg.asmc-success { color: #00a32a; }
.asmc-msg.asmc-error   { color: #d63638; }

.asmc-verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #00a32a;
    font-weight: 700;
    font-size: 15px;
    padding: 6px 0;
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN — Status/Settings pages
   ═══════════════════════════════════════════════════════════════════ */

.asmc-wrap { max-width: 900px; }
.asmc-status-grid { display: grid; grid-template-columns: auto 1fr; gap: 20px; margin: 20px 0; }
.asmc-card { background: #fff; border: 1px solid #ccd0d4; border-radius: 4px; padding: 20px; }
.asmc-balance-card { text-align: center; }
.asmc-balance-num  { font-size: 52px; font-weight: 800; color: #00a32a; line-height: 1; }
.asmc-balance-label{ font-size: 13px; color: #666; margin-top: 4px; }
.asmc-balance-card.asmc-danger .asmc-balance-num { color: #d63638; }
.asmc-info-table   { width: 100%; border-collapse: collapse; }
.asmc-info-table td{ padding: 8px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.asmc-info-table td:first-child { font-weight: 600; width: 180px; }
.asmc-text-danger  { color: #d63638; font-weight: bold; }
.asmc-badge        { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.asmc-badge-on     { background: #d7f5df; color: #00a32a; }
.asmc-badge-off    { background: #f0f0f1; color: #666; }
