/* ============================================================
   WC Phone Auth – Styles
   Compatible with Storefront, Flatsome, Astra, and most WC themes.
   ============================================================ */

/* ── Divider ─────────────────────────────────────────── */
.wcpa-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: #999;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.wcpa-divider::before,
.wcpa-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* ── Phone auth wrapper ──────────────────────────────── */
.wcpa-phone-auth-form {
    margin-top: 8px;
}

.wcpa-checkout-phone-auth {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
}
.wcpa-checkout-phone-auth h3 {
    margin-top: 0;
}

/* ── Inputs ──────────────────────────────────────────── */
.wcpa-phone-input,
.wcpa-otp-input {
    width: 100%;
    max-width: 320px;
    font-size: 1.1em;
    letter-spacing: .05em;
}

.wcpa-otp-input {
    font-size: 1.5em;
    letter-spacing: .25em;
    text-align: center;
    max-width: 180px;
}

/* ── Buttons ─────────────────────────────────────────── */
.wcpa-btn-send-otp,
.wcpa-btn-verify-otp {
    background-color: #2c2c2c !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    padding: 10px 22px !important;
    cursor: pointer;
    font-size: 0.95em;
    transition: background .2s;
    text-align: center;
    align-items: center;
}
.wcpa-btn-send-otp:hover,
.wcpa-btn-verify-otp:hover {
    background-color: #444 !important;
}
.wcpa-btn-send-otp:disabled,
.wcpa-btn-verify-otp:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.wcpa-btn-resend-otp {
    background: transparent !important;
    border: 1px solid #ccc !important;
    color: #555 !important;
    margin-left: 8px !important;
    border-radius: 4px;
    padding: 10px 16px !important;
    cursor: pointer;
    font-size: 0.9em;
}

.wcpa-btn-back {
    display: inline-block;
    margin-left: 12px;
    font-size: 0.85em;
    color: #888;
    text-decoration: none;
    vertical-align: middle;
}
.wcpa-btn-back:hover { color: #333; }

/* ── Info text above OTP input ───────────────────────── */
.wcpa-otp-info {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 8px;
}

/* ── Messages ────────────────────────────────────────── */
.wcpa-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.4;
}
.wcpa-msg-error {
    background: #fdf0f0;
    border-left: 3px solid #e74c3c;
    color: #c0392b;
}
.wcpa-msg-success {
    background: #f0fdf4;
    border-left: 3px solid #27ae60;
    color: #1e8449;
}
.wcpa-msg-info {
    background: #fffbeb;
    border-left: 3px solid #f39c12;
    color: #7d6608;
    font-family: monospace;
    font-size: 1em;
}

/* ── Registration phone field ────────────────────────── */
.wcpa-phone-field-wrapper {
    margin-top: 12px;
}
