.elion-price-replacement {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin: 1em 0;
    text-align: center;
}

.elion-price-replacement .button,
.elion-login-button {
    background-color: #0073aa; /* Fallback */
    color: #fff !important;
    font-weight: bold;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 10px;
    text-align: center;
}

/* --- Simplified Registration Form Styles --- */

#elion-registration-container {
    min-width: 100%;
    max-width: 700px;
    margin: 2em auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2em 3em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden; /* Contains the animation */
}

/* Progress Bar */
#elion-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5em;
    position: relative;
}

#elion-progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

#elion-progress-bar .step-indicator {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 60px; /* Give some width for the label */
}

#elion-progress-bar .step-indicator .step-number {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    font-weight: bold;
    margin: 0 auto 8px; /* Adjusted margin */
    transition: background-color 0.3s ease;
}

#elion-progress-bar .step-indicator .step-label {
    display: block;
    font-size: 0.8em;
    color: #6c757d;
}

#elion-progress-bar .step-indicator.active .step-number,
#elion-progress-bar .step-indicator.completed .step-number {
    background-color: #0073aa; /* Primary color */
}

#elion-progress-bar .step-indicator.active .step-label {
    color: #0073aa; /* Highlight active step label */
    font-weight: bold;
}

/* Form Steps */
#elion-registration-form .form-step {
    display: none;
}

#elion-registration-form .form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#elion-registration-form h2,
#elion-registration-form p {
    text-align: left;
}

#elion-registration-form h2 {
    font-size: 1.5em;
    margin-bottom: 1em;
    color: #333;
}

#elion-registration-form p {
    margin-bottom: 1.5em;
}

#elion-registration-form .elion-password-info {
    font-size: 0.9em;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: -1em;
}

#elion-registration-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

#elion-registration-form label .required {
    color: #dc3545;
    font-weight: normal;
    padding-left: 2px;
}

#elion-registration-form .input,
#elion-registration-form input[type="text"],
#elion-registration-form input[type="email"],
#elion-registration-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#elion-registration-form .input.error,
#elion-registration-form input[type="text"].error,
#elion-registration-form input[type="email"].error,
#elion-registration-form input[type="password"].error {
    border-color: #dc3545;
    box-shadow: 0 0 0 1px #dc3545;
}


#elion-registration-form .input:focus,
#elion-registration-form input[type="text"]:focus,
#elion-registration-form input[type="email"]:focus,
#elion-registration-form input[type="password"]:focus {
    border-color: #0073aa; /* Primary color */
    box-shadow: 0 0 0 1px #0073aa; /* Primary color */
    outline: none;
}

/* Buttons */
.elion-button {
    cursor: pointer;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background-color: #0073aa; /* Primary color */
    border: none;
    border-radius: 5px;
    text-shadow: none;
    transition: background-color 0.2s ease-in-out, opacity 0.2s;
}

.elion-button:hover {
    opacity: 0.9;
}

.elion-button.prev-step {
    background-color: #6c757d;
    margin-right: 10px;
}

#step-2 .elion-button {
    display: inline-block;
}

.form-navigation-buttons {
    text-align: left;
    margin-top: 2em;
}

#elion-registration-form input[type="submit"].elion-button {
    width: auto;
}


/* Hide original form styles if they still exist */
#elion-registration-form {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}
/* Product Attributes Shortcode - Updated Styling */
.elion-product-attributes ul {
    list-style: none;
    padding-left: 0;
    margin: 1em 0;
    font-size: 0.8em;
    color: #555;
    max-width: 300px; /* Adjust as needed */
}

.elion-product-attributes li {
    display: flex;
    align-items: baseline; /* Align text on their baseline */
    padding: 3px 0;
}

.elion-product-attributes .elion-attr-label {
    font-weight: bold; /* Label is bold */
    order: 1;
    padding-right: 0.5em;
    flex-shrink: 0; /* Prevent label from wrapping */
}

.elion-product-attributes .elion-attr-value {
    font-weight: normal; /* Value is normal weight */
    order: 3;
    padding-left: 0.5em;
    text-align: right;
    flex-shrink: 0; /* Prevent value from wrapping */
}

/* The dotted line effect */
.elion-product-attributes li::after {
    content: '';
    order: 2; /* Place between label and value */
    flex-grow: 1; /* Grow to fill available space */
    border-bottom: 1px dotted #e0e0e0;
    position: relative;
    top: -0.3em; /* Adjust vertical alignment */
    margin: 0 0.25em;
}

/* Hide the old simple list style */
.elion-product-attributes li strong {
    display: none;
}

/* Stock Status Shortcode Styles */
.elion-stock-status {
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.9em;
    display: inline-flex; /* Use flex to align items nicely */
    align-items: center;
}

.elion-stock-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

/* In Stock - Green */
.elion-status-instock {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}
.elion-status-instock .elion-stock-dot {
    background-color: #28a745;
}

/* On Backorder - Orange */
.elion-status-onbackorder {
    color: #fd7e14;
    background-color: rgba(253, 126, 20, 0.1);
}
.elion-status-onbackorder .elion-stock-dot {
    background-color: #fd7e14;
}

/* Out of Stock - Red */
.elion-status-outofstock {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}
.elion-status-outofstock .elion-stock-dot {
    background-color: #dc3545;
}

/* --- Elion Stock Status Shortcode --- */
.elion-stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}
.elion-stock-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.elion-status-instock .elion-stock-dot { background-color: #28a745; }
.elion-status-onbackorder .elion-stock-dot { background-color: #fd7e14; }
.elion-status-outofstock .elion-stock-dot { background-color: #dc3545; }


/* --- Floating Action Button (FAB) for Sales Rep Contact --- */
#elion-contact-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    display: none; /* Hidden by default, shown by JS when data is available */
    width: 60px;
    height: 60px;
}

.elion-fab-main-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--elion-primary-color, #0073aa);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.elion-fab-main-button:hover {
    transform: scale(1.1);
    background-color: var(--elion-primary-color-dark, #005a87);
}

.elion-fab-main-button .dashicons {
    font-size: 28px;
    width: auto;
    height: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.elion-fab-main-button .elion-fab-close-icon {
    opacity: 0;
    transform: rotate(-45deg);
}

.elion-fab-content-box {
    position: absolute;
    bottom: 75px; /* Above the button */
    right: 0;
    width: 300px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border: 1px solid #ddd;
}

/* FAB Open State */
#elion-contact-fab.elion-fab-open .elion-fab-main-button .dashicons-chat {
    opacity: 0;
    transform: rotate(45deg);
}
#elion-contact-fab.elion-fab-open .elion-fab-main-button .elion-fab-close-icon {
    opacity: 1;
    transform: rotate(0);
}
#elion-contact-fab.elion-fab-open .elion-fab-content-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Contact Box Content */
.elion-fab-content-box .sales-rep-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.elion-fab-content-box .sales-rep-card:not(:last-child) {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.elion-fab-content-box .sales-rep-picture {
    width: 60px; /* Reduced size */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0; /* Removed auto margin */
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.elion-fab-content-box .sales-rep-picture .dashicons {
    font-size: 32px;
}

.elion-fab-content-box .sales-rep-info {
    display: flex;
    flex-direction: column;
}

.elion-fab-content-box .sales-rep-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0; /* Added margin bottom */
    color: #333;
}

.elion-fab-content-box .sales-rep-contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.elion-fab-content-box .sales-rep-contact-details li {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.elion-fab-content-box .sales-rep-contact-details li:last-child {
    margin-bottom: 0;
}

.elion-fab-content-box .sales-rep-contact-details .dashicons {
    margin-right: 10px; /* Adjusted margin */
    color: #f0b94b; /* Yellow color from image */
    font-size: 20px;
}

.elion-fab-content-box .sales-rep-contact-details a {
    text-decoration: none;
    color: #555;
    transition: color 0.2s ease;
}

.elion-fab-content-box .sales-rep-contact-details a:hover {
    color: var(--elion-primary-color, #0073aa);
}

/* Responsive */
@media (max-width: 480px) {
    #elion-contact-fab {
        bottom: 15px;
        right: 15px;
    }
    .elion-fab-content-box {
        width: calc(100vw - 40px);
        max-width: 280px;
        right: -10px; /* Adjust to prevent overflow */
    }
}



/* --- Price Replacement for Non-B2B Users --- */
.elion-price-replacement-text {
    color: #666;
    font-style: italic;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.elion-tiered-pricing-table .elion-price-replacement-text {
    background-color: transparent;
    border: none;
    padding: 4px 8px;
    min-width: auto;
}

.elion-bundle-pricing .elion-price-replacement-text {
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.elion-bundle-product-pricing .elion-price-replacement-text {
    font-size: 14px;
    color: #777;
}

/* --- "My Account" - Contact Persons Page --- */
.elion-form .elion-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.elion-form .form-row-wide {
    grid-column: 1 / -1;
}

.elion-form .elion-image-uploader {
    display: flex;
    align-items: center;
    gap: 15px;
}

.elion-form .elion-image-uploader .elion-profile-picture-preview {
    flex-shrink: 0;
}

.elion-form .elion-image-uploader .button {
    margin-top: 0;
}

/* Ensure buttons in WC My Account look consistent */
.woocommerce-account .button {
    margin-bottom: 5px; /* Add some space between buttons */
}

