.product-registration-form.loading .loading-indicator {
    display: block !important;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.loading-indicator {
    color: #7a7a7a;
}

/* Custom Searchable Dropdown Styles */
.custom-select-container {
    position: relative;
    width: 100%;
}

.selected-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    background-color: #fff;
    cursor: pointer;
    min-height: 38px;
}

.selected-option:hover {
    border-color: #adb5bd;
}

.selected-option.active {
    border-color: #7a7a7a;
    box-shadow: 0 0 0 0.2rem rgba(122, 122, 122, 0.25);
}

.dropdown-arrow {
    font-size: .7em;
    transition: transform 0.2s;
}

.selected-option.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Rename to custom-dropdown-menu to avoid conflicts with Bootstrap */
.custom-select-container .dropdown-menu,
.store-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999; /* Increase z-index to ensure it appears above other elements */
    display: none;
    width: 100%;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    max-height: 300px;
    overflow-y: auto;
}

/* Ensure our show class works */
.custom-select-container .dropdown-menu.show,
.store-dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
}

.search-container {
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.search-input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.search-input:focus {
    border-color: #7a7a7a;
    box-shadow: 0 0 0 0.2rem rgba(122, 122, 122, 0.25);
    outline: 0;
}

.options-container {
    max-height: 230px;
    overflow-y: auto;
}

.option-item {
    padding: 0.375rem 0.75rem;
    cursor: pointer;
}

.option-item:hover {
    background-color: #f8f9fa;
}

.option-item.selected {
    background-color: #e9ecef;
}

.no-results {
    padding: 0.5rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.custom-input-option {
    padding: 0.5rem;
    border-top: 1px solid #e9ecef;
}
