/* ==========================================================================
   Hoxo B2B Access - Frontend Styles
   ========================================================================== */

/* Login/Register Buttons
   ========================================================================== */

a.hoxo-b2b-login-btn,
.hoxo-b2b-login-btn {
    display: inline-block;
    padding: 10px 20px !important;
    background-color: #FE6A00 !important;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border: 2px solid #FE6A00 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

a.hoxo-b2b-login-btn:hover,
.hoxo-b2b-login-btn:hover {
    background-color: #e55e00 !important;
    border-color: #e55e00 !important;
    color: #fff !important;
}

/* Single Product Buttons */

.hoxo-b2b-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.hoxo-b2b-buttons .hoxo-b2b-btn-primary,
a.hoxo-b2b-btn-primary,
button.hoxo-b2b-btn-primary,
.hoxo-b2b-btn-primary {
    display: inline-block;
    padding: 12px 28px !important;
    background-color: #252525 !important;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border: 2px solid #252525 !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.hoxo-b2b-buttons .hoxo-b2b-btn-primary:hover,
a.hoxo-b2b-btn-primary:hover,
button.hoxo-b2b-btn-primary:hover,
.hoxo-b2b-btn-primary:hover {
    background-color: #3a3a3a !important;
    border-color: #3a3a3a !important;
    color: #fff !important;
}

.hoxo-b2b-buttons .hoxo-b2b-btn-secondary,
a.hoxo-b2b-btn-secondary,
button.hoxo-b2b-btn-secondary,
.hoxo-b2b-btn-secondary {
    display: inline-block;
    padding: 12px 28px !important;
    background-color: #FE6A00 !important;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border: 2px solid #FE6A00 !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.hoxo-b2b-buttons .hoxo-b2b-btn-secondary:hover,
a.hoxo-b2b-btn-secondary:hover,
button.hoxo-b2b-btn-secondary:hover,
.hoxo-b2b-btn-secondary:hover {
    background-color: #e55e00 !important;
    border-color: #e55e00 !important;
    color: #fff !important;
}

/* Status Notices */

.hoxo-b2b-notice {
    margin-bottom: 20px;
}

/* ==========================================================================
   Registration Form
   ========================================================================== */

.hoxo-b2b-registration-form-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.hoxo-b2b-form h3 {
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-size: 18px;
    color: #333;
}

.hoxo-b2b-form h3:first-of-type {
    margin-top: 0;
}

.hoxo-b2b-form-row {
    margin-bottom: 16px;
}

.hoxo-b2b-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.hoxo-b2b-form-row label .required {
    color: #e2401c;
}

.hoxo-b2b-form-row input[type="text"],
.hoxo-b2b-form-row input[type="email"],
.hoxo-b2b-form-row input[type="tel"],
.hoxo-b2b-form-row input[type="password"],
.hoxo-b2b-form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.hoxo-b2b-form-row input:focus,
.hoxo-b2b-form-row select:focus {
    border-color: #333;
    outline: none;
    box-shadow: 0 0 0 1px #333;
}

.hoxo-b2b-form-row input.hoxo-b2b-error,
.hoxo-b2b-form-row select.hoxo-b2b-error {
    border-color: #e2401c;
}

.hoxo-b2b-field-error {
    color: #e2401c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Two column layout */

.hoxo-b2b-form-row-half {
    display: flex;
    gap: 16px;
}

.hoxo-b2b-form-col {
    flex: 1;
}

.hoxo-b2b-form-col-wide {
    flex: 2;
}

.hoxo-b2b-form-col-narrow {
    flex: 1;
}

/* Submit */

.hoxo-b2b-form-submit {
    margin-top: 30px;
}

.hoxo-b2b-form-submit .hoxo-b2b-btn-primary {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
    border: none;
    background-color: #FE6A00;
}

.hoxo-b2b-form-submit .hoxo-b2b-btn-primary:hover {
    background-color: #e55e00;
}

.hoxo-b2b-form-submit .hoxo-b2b-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form messages */

.hoxo-b2b-form-messages {
    margin-bottom: 20px;
}

.hoxo-b2b-form-messages .hoxo-b2b-message-success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.hoxo-b2b-form-messages .hoxo-b2b-message-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.hoxo-b2b-form-messages .hoxo-b2b-message-error ul {
    margin: 5px 0 0 20px;
    padding: 0;
}

/* Responsive */

@media (max-width: 600px) {
    .hoxo-b2b-form-row-half {
        flex-direction: column;
        gap: 0;
    }

    .hoxo-b2b-form-col {
        margin-bottom: 16px;
    }

    .hoxo-b2b-buttons {
        flex-direction: column;
    }

    .hoxo-b2b-btn-primary,
    .hoxo-b2b-btn-secondary {
        width: 100%;
    }
}
