/* B2B Portal Frontend Styles */

/* Registration Form */
.b2b-portal-registration-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 30px auto;
}

.b2b-portal-registration-form h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.b2b-portal-registration-form > p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.b2b-registration-form-fields {
    margin-top: 20px;
}

.b2b-registration-form-fields .form-row {
    margin-bottom: 15px;
}

.b2b-registration-form-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.b2b-registration-form-fields .required {
    color: #dc3545;
}

.b2b-registration-form-fields input[type="text"],
.b2b-registration-form-fields input[type="email"],
.b2b-registration-form-fields input[type="password"],
.b2b-registration-form-fields input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.b2b-registration-form-fields input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.b2b-registration-form-fields small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.b2b-registration-form-fields .button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.b2b-registration-form-fields .button:hover {
    background-color: #005a87;
}

.b2b-registration-form-fields .form-row:last-child {
    margin-bottom: 0;
}

.woocommerce-error,
.woocommerce-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

.woocommerce-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Price Messages */
.b2b-portal-login-message {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 10px 0;
    color: #856404;
    font-weight: 500;
}

.b2b-portal-login-notice {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 16px;
    margin: 20px 0;
    color: #0c5460;
}

.b2b-portal-login-notice p {
    margin: 0 0 10px 0;
}

.b2b-portal-login-notice p:last-child {
    margin-bottom: 0;
}

.b2b-portal-login-notice .button {
    margin-right: 10px;
    margin-top: 10px;
}

/* WhatsApp Button */
.b2b-portal-whatsapp-button {
    background-color: #25d366 !important;
    color: white !important;
    border-color: #25d366 !important;
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px !important;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.b2b-portal-whatsapp-button:hover {
    background-color: #1ead54 !important;
    color: white !important;
}

/* Minimum Order Notice */
.b2b-portal-min-order-notice {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 15px;
    color: #721c24;
}

.b2b-portal-min-order-notice strong {
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 768px) {
    .b2b-portal-registration-form {
        padding: 20px;
        margin: 20px 10px;
    }

    .b2b-portal-login-notice {
        padding: 12px;
    }

    .b2b-portal-login-notice .button {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .b2b-portal-whatsapp-button {
        width: 100%;
        text-align: center;
    }
}
