/* Besalp Dropdown Styles */
.dynamic-dropdown-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
}

.dynamic-dropdown {
    position: relative;
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}

.dropdown-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 12px;
}

.dropdown-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding-right: 12px;
    font-size: 14px;
    line-height: 1;
}

/* Fix for Elementor icons */
.dropdown-icon i, 
.dropdown-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

.dropdown-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none;  /* Hide by default */
    z-index: 10;
    margin-top: 5px;
}

.dropdown-list.open {
    display: block;  /* Show when 'open' class is added */
}

.dropdown-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f0f0f0;
}
