/* General styles for the product editor module */
.cvc-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.9em;
}

.cvc-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.cvc-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Modal styles */
#cvc-product-editor-modal {
    /* Tailwind classes handle most of this now: fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center */
}

#cvc-product-editor-modal .modal-content {
    /* Tailwind classes handle most of this now: bg-white p-8 rounded-lg shadow-xl max-w-2xl w-full mx-4 relative */
    max-width: 40rem; /* Override Tailwind default max-w-2xl if needed, or adjust Tailwind config */
}

#cvc-product-editor-modal .modal-close-button {
    /* Tailwind classes handle most of this now: absolute top-4 right-4 text-gray-500 hover:text-gray-800 text-2xl cursor-pointer */
}

/* Loader Overlay */
#cvc-loader-overlay {
    /* Tailwind classes handle most of this now: fixed inset-0 bg-gray-800 bg-opacity-75 flex items-center justify-center z-[100] */
}

.cvc-loader {
    /* Tailwind classes handle most of this now: animate-spin rounded-full h-16 w-16 border-t-4 border-b-4 border-blue-500 */
    border-top-color: #3b82f6; /* blue-500 */
    border-bottom-color: #3b82f6; /* blue-500 */
    border-left-color: transparent;
    border-right-color: transparent;
}

/* Select2 adjustments for Tailwind compatibility */
.select2-container--default .select2-selection--multiple {
    /* same inner padding & min-height for both selects */
    padding: 4px;
    min-height: 46px;
    border-color: #d1d5db; /* gray-300 */
    border-radius: 0.375rem; /* rounded-md */
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 1px #3b82f6; /* ring-blue-500 */
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    /* equal spacing for each “pill” */
    margin: 4px 6px 4px 0;
    background-color: #e0e7ff; /* blue-100 */
    border: 1px solid #93c5fd; /* blue-300 */
    border-radius: 0.25rem; /* rounded */
    padding: 0.125rem 0.5rem;
    color: #1e40af; /* blue-800 */
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #1e40af; /* blue-800 */
    margin-right: 0.25rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ef4444; /* red-500 */
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding-right: 0.75rem; /* px-3 */
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin-top: 0.25rem;
}

/* ensure both suppliers and warehouse boxes render with the
   same full-width outline (Bootstrap/TW resets sometimes differ) */
#cvc_suppliers + .select2,
#cvc_warehouses + .select2 {
    width: 100% !important;
}

/* Ensure inputs and selects have consistent styling */
.modal-content input[type="number"],
.modal-content input[type="text"],
.modal-content textarea,
.modal-content select {
    /* These are already handled by Tailwind classes in the HTML, but adding here for consistency/fallback */
    /* w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-blue-500 focus:border-blue-500 */
}
