/**
 * BrewmyApp — OTP Login on WooCommerce My Account page
 */

/* ── Divider ── */
.bma-otp-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bma-otp-divider::before,
.bma-otp-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}
.bma-otp-divider span {
    padding: 0 12px;
}

/* ── OTP Container ── */
#bma-otp-login {
    margin-top: 0;
}

/* ── Buttons ── */
.bma-otp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px !important;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #333 !important;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1.4;
    box-sizing: border-box;
}
.bma-otp-btn:hover {
    background: #f7f7f7 !important;
    border-color: #bbb !important;
}
.bma-otp-btn .dashicons {
    margin-right: 6px;
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}
.bma-otp-btn-wa {
    border-color: #25d366 !important;
    color: #128c7e !important;
}
.bma-otp-btn-wa:hover {
    background: #e8faf0 !important;
}
.bma-otp-btn-primary {
    background: #7f54b3 !important;
    border-color: #7f54b3 !important;
    color: #fff !important;
}
.bma-otp-btn-primary:hover {
    background: #6b42a0 !important;
}
.bma-otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Labels / descriptions ── */
.bma-otp-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* ── Back link ── */
.bma-otp-back {
    margin-top: 8px;
    font-size: 13px;
}
.bma-otp-back a {
    color: #7f54b3;
    text-decoration: none;
}
.bma-otp-back a:hover {
    text-decoration: underline;
}

/* ── Resend ── */
.bma-otp-resend {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}
.bma-otp-resend a {
    color: #7f54b3;
    text-decoration: none;
    font-weight: 500;
}
.bma-otp-resend a:hover {
    text-decoration: underline;
}

/* ── Message (success / error) ── */
.bma-otp-message {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
}
.bma-otp-message.bma-otp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.bma-otp-message.bma-otp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ── OTP Code Input ── */
#bma-otp-code,
#bma-otp-standalone-code {
    letter-spacing: 8px;
    font-size: 20px;
    text-align: center;
    font-family: monospace;
}

/* ── OTP-Only Standalone Mode ── */
#bma-otp-only-login {
    margin-bottom: 24px;
}
#bma-otp-only-login h2 {
    margin-bottom: 16px;
}
#bma-otp-login-standalone {
    max-width: 400px;
}
