/**
 * TechOnMart WhatsApp Sender - WooCommerce Frontend Styles
 *
 * @package TechOnMart_WhatsApp_Sender
 */

/* ==========================================================================
   1. WooCommerce Registration Form WhatsApp Field
   ========================================================================== */

.techonmart-was-wc-phone-wrap {
    margin-bottom: 1.5em;
}

.techonmart-was-wc-phone-wrap label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.techonmart-was-wc-input-group {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-bottom: 6px;
}

.techonmart-was-wc-country-select {
    max-width: 130px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.techonmart-was-wc-input-group input[type="tel"] {
    flex: 1 1 auto;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    direction: ltr;
}

.techonmart-was-wc-input-group .button {
    flex: 0 0 auto;
    padding: 0 16px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.techonmart-was-wc-desc {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.techonmart-was-wc-alert {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.techonmart-was-wc-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.techonmart-was-wc-alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* Registration OTP Card */
.techonmart-was-wc-otp-card {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.techonmart-was-wc-otp-header {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #1e293b;
}

.techonmart-was-wc-otp-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.techonmart-was-wc-otp-inputs input[type="text"] {
    width: 120px !important;
    text-align: center;
    letter-spacing: 4px;
    font-size: 16px;
    font-weight: bold;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    direction: ltr;
}

.techonmart-was-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

/* ==========================================================================
   2. WooCommerce Login 2FA Container
   ========================================================================== */

.techonmart-was-2fa-container {
    max-width: 440px;
    margin: 40px auto;
    padding: 0 15px;
}

.techonmart-was-2fa-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.techonmart-was-2fa-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
}

.techonmart-was-2fa-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.techonmart-was-2fa-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.techonmart-was-2fa-input {
    width: 100% !important;
    max-width: 240px;
    margin: 0 auto !important;
    display: block;
    text-align: center;
    font-size: 24px !important;
    font-weight: 700;
    letter-spacing: 8px;
    padding: 10px 14px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc;
    direction: ltr;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.techonmart-was-2fa-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    background: #ffffff;
    outline: none;
}

.techonmart-was-2fa-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.techonmart-was-cancel-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: underline;
}

.techonmart-was-cancel-link:hover {
    color: #0f172a;
}
