/**
 * Frontend Styles for WooCommerce B2B Profesional
 * 
 * @author Álvaro Puche Ortiz
 * @website https://zhenvo.com
 */

/* B2B Badge Styles */
.b2b-badge {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-badge-single {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

/* B2B Price Styles */
.b2b-price {
    color: #0073aa;
    font-weight: 600;
}

.b2b-label {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-left: 5px;
}

.b2b-restricted {
    display: block;
    font-size: 0.85em;
    color: #999;
    font-style: italic;
    margin-top: 5px;
}

/* B2B Savings Display */
.b2b-savings {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 500;
    border-left: 4px solid #4caf50;
}

/* Non-purchasable B2B Products */
.product.b2b-restricted .add_to_cart_button {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* B2B Login Widget Styles */
.b2b-login-widget {
    max-width: 100%;
}

.b2b-login-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.b2b-login-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.b2b-login-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.b2b-login-links {
    margin-top: 20px;
    text-align: center;
}

.b2b-login-links a {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.b2b-login-links a:hover {
    text-decoration: underline;
}

.b2b-register-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

/* Logged In User Dashboard */
.b2b-user-dashboard {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.b2b-welcome-message {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.b2b-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 25px;
    font-weight: 500;
    margin-bottom: 20px;
}

.b2b-status.not-profesional {
    background: #fff3cd;
    color: #856404;
}

.b2b-status .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.b2b-dashboard-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.b2b-dashboard-links .elementor-button {
    margin: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .b2b-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .b2b-login-form {
        padding: 20px;
    }
    
    .b2b-dashboard-links {
        flex-direction: column;
    }
    
    .b2b-dashboard-links .elementor-button {
        width: 100%;
    }
}