/**
 * Method Selector Module Styles
 *
 * Styles for the visitor method choice UI on login, register, and checkout forms.
 *
 * @package Authyo_OTP_Auth
 * @since   1.0.17
 */

/* === Method Selector Container === */
.authyo-method-selector {
    margin-top: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #0073aa;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 115, 170, 0.08);
}

.authyo-method-selector-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* === Method Selector Buttons Grid === */
.authyo-method-selector-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 600px) {
    .authyo-method-selector-buttons {
        grid-template-columns: 1fr;
    }
}

/* === Individual Method Button === */
.authyo-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 13px;
    background: #fff;
    border: 2px solid #0073aa !important;
    border-radius: 4px;
    color: #0073aa;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.authyo-method-btn:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.authyo-method-btn:active {
    transform: translateY(0);
}

.authyo-method-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.authyo-method-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

/* Selected state (applied by JS after visitor clicks) */
.authyo-method-btn.authyo-method-selected {
    background: #0073aa;
    color: #fff;
    border-color: #005a87 !important;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
}

/* === Context-specific adjustments === */

/* Login & Register forms */
.authyo-otp-auth-form .authyo-method-selector {
    margin-bottom: 12px;
}

/* Checkout form */
.authyo-checkout-otp-phone-section .authyo-method-selector {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Hide the default Send OTP button when method selector is visible */
.authyo-method-selector-active .authyo-send-otp-btn,
.authyo-method-selector-active #send-login-otp,
.authyo-method-selector-active #register-with-otp,
.authyo-method-selector-active #authyo_send_phone_otp {
    display: none !important;
}
