/**
 * ZTOA Email Verification - Admin & Frontend Styles
 *
 * Styles compatible with Wolmart theme and WooCommerce.
 *
 * @package ZTOA_Email_Verification
 */

/* ========================================
   Admin Styles - Users List
   ======================================== */

/* Verification status column */
.column-email_verified {
    width: 80px;
    text-align: center;
}

/* Verified checkmark */
.ztoa-verified {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    color: #46b450;
    font-size: 18px;
    font-weight: bold;
}

/* Unverified X mark */
.ztoa-unverified {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    color: #dc3232;
    font-size: 18px;
    font-weight: bold;
}

/* Row action links */
.row-actions .ztoa_verify a,
.row-actions .ztoa_resend a {
    color: #0073aa;
}

.row-actions .ztoa_verify a:hover,
.row-actions .ztoa_resend a:hover {
    color: #006799;
}

.row-actions .ztoa_unverify a {
    color: #a00;
}

.row-actions .ztoa_unverify a:hover {
    color: #dc3232;
}

/* User profile verification section */
#ztoa_email_verified {
    margin-right: 8px;
}

/* ========================================
   Frontend Styles - Wolmart Compatible
   ======================================== */

/* Resend verification link styling */
.ztoa-resend-link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.ztoa-resend-link:hover {
    text-decoration: none;
}

.ztoa-resend-link.ztoa-sending {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}

/* Floating notification (matches Wolmart alert styling) */
.ztoa-floating-notice {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
    animation: ztoa-slide-down 0.3s ease-out;
}

.ztoa-floating-notice i {
    font-size: 18px;
}

.ztoa-notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ztoa-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Wolmart alert override for verification messages */
.woocommerce-form-login .alert,
.woocommerce-form-register .alert {
    margin-bottom: 20px;
}

.alert.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert.alert-warning i {
    color: #856404;
}

/* My Account verification prompt */
.woocommerce-MyAccount-content .alert-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content .alert-warning a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.woocommerce-MyAccount-content .alert-warning a:hover {
    text-decoration: none;
}

/* Animation */
@keyframes ztoa-slide-down {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .column-email_verified {
        display: none;
    }

    .ztoa-floating-notice {
        top: 60px;
        width: 95%;
        max-width: none;
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* WooCommerce error message with resend link */
.woocommerce-error .ztoa-resend-link,
.woocommerce-message .ztoa-resend-link,
.woocommerce-info .ztoa-resend-link {
    display: inline-block;
    margin-top: 5px;
}

/* Login form error styling enhancement */
.woocommerce-form-login__submit + .woocommerce-error,
.woocommerce-form-register .woocommerce-error {
    margin-top: 15px;
}

/* Wolmart tab content styling */
.tab-pane .woocommerce-error,
.tab-pane .woocommerce-message,
.tab-pane .woocommerce-info {
    margin: 0 0 20px 0;
}
