/* Professional List Preset Styles */
.professional-list-preset {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #334155;
    line-height: 1.6;
}



/* Service Items */
.professional-list-preset .services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.professional-list-preset .service-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    cursor: pointer;
    background: white;
}

.professional-list-preset .service-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.professional-list-preset .service-item.selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.professional-list-preset .service-item.expanded {
    border-color: #3b82f6;
    background: #f8fafc;
}

/* Service Info Layout */
.professional-list-preset .service-info {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
}

.professional-list-preset .service-icon {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.professional-list-preset .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.professional-list-preset .service-details {
    flex: 1;
    min-width: 0;
}

.professional-list-preset .service-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.professional-list-preset .service-meta {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Service Actions (for products without variations) */
.professional-list-preset .service-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Service Variations */
.professional-list-preset .service-variations {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.professional-list-preset .service-variations[style*="block"] {
    display: flex;
}

.professional-list-preset .variation-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.professional-list-preset .variation-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.professional-list-preset .variation-info {
    flex: 1;
    min-width: 0;
}

.professional-list-preset .variation-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.professional-list-preset .variation-info p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 4px 0;
}

.professional-list-preset .variation-price {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
    margin: 0;
}

.professional-list-preset .variation-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

/* Product Categories */
.professional-list-preset .product-categories .badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}

/* Buttons */
.professional-list-preset .btn-info {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    white-space: nowrap;
}

.professional-list-preset .btn-info:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.professional-list-preset .btn-expand {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    white-space: nowrap;
}

.professional-list-preset .btn-expand:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.professional-list-preset .btn-add-variation,
.professional-list-preset .btn-add-product {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.professional-list-preset .btn-add-variation:hover,
.professional-list-preset .btn-add-product:hover {
    background: #059669;
    transform: translateY(-1px);
}



/* Mobile Responsive */
@media (max-width: 768px) {
    .professional-list-preset .search-filters {
        flex-direction: column;
    }
    
    .professional-list-preset .search-input {
        min-width: 100%;
    }
    
    .professional-list-preset .service-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .professional-list-preset .service-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    
    .professional-list-preset .variation-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .professional-list-preset .variation-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

/* Accessibility */
.professional-list-preset .service-item:focus,
.professional-list-preset .variation-option:focus,
.professional-list-preset .btn-info:focus,
.professional-list-preset .btn-add-variation:focus,
.professional-list-preset .btn-add-product:focus,
.professional-list-preset .search-input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Universal Product Description Modal Content Styling */
.product-description-modal { line-height: 1.6; font-size: 1rem; }
.product-description-modal table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; font-size: 0.875rem; }
.product-description-modal table, .product-description-modal th, .product-description-modal td { border: 1px solid #dee2e6; }
.product-description-modal th, .product-description-modal td { padding: 0.5rem; text-align: left; }
.product-description-modal th { background-color: #f8f9fa; font-weight: 600; }
.product-description-modal ul, .product-description-modal ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.product-description-modal h1, .product-description-modal h2, .product-description-modal h3, .product-description-modal h4, .product-description-modal h5, .product-description-modal h6 { margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; color: #333; }
.product-description-modal h1 { font-size: 1.5rem; }
.product-description-modal h2 { font-size: 1.375rem; }
.product-description-modal h3 { font-size: 1.25rem; }
.product-description-modal h4 { font-size: 1.125rem; }
.product-description-modal h5 { font-size: 1rem; }
.product-description-modal h6 { font-size: 0.875rem; }
.product-description-modal p { margin-bottom: 1rem; line-height: 1.6; }
.product-description-modal img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1rem 0; }
.product-description-modal blockquote { border-left: 4px solid #007bff; padding-left: 1rem; margin: 1rem 0; font-style: italic; background-color: #f8f9fa; padding: 1rem; border-radius: 0.5rem; }
@media (max-width: 576px) {
    .modal-dialog { margin: 0.5rem; max-width: none; }
    .product-description-modal { font-size: 0.9rem; }
    .product-description-modal table { font-size: 0.8rem; }
}
